aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-27 14:10:40 +0200
committerMateja <mail@matejamaric.com>2021-07-27 14:10:40 +0200
commit3925b2674aa06b9824e75c584dce493d515b52e2 (patch)
treec3f9b8de65a72e9220ab9e7b766601a83eb64886
parentf847f7dd0f3728b9aab319a156c54a8cab388f0d (diff)
downloadmevn-ecommerce-3925b2674aa06b9824e75c584dce493d515b52e2.tar.gz
mevn-ecommerce-3925b2674aa06b9824e75c584dce493d515b52e2.zip
Display PayPal buttons only if cart is not empty.
-rw-r--r--client/src/views/Checkout.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/views/Checkout.vue b/client/src/views/Checkout.vue
index f93fba0..a62f83c 100644
--- a/client/src/views/Checkout.vue
+++ b/client/src/views/Checkout.vue
@@ -15,7 +15,7 @@
</ul>
<p class="text-center my-3 fw-bold">You can buy {{ cartSize }} items for ${{ cartPrice }}.</p>
</div>
- <div class="col-md-4 card p-2">
+ <div class="col-md-4 card p-2" v-if="cartSize">
<div ref="paypal"></div>
</div>
</div>