From 3925b2674aa06b9824e75c584dce493d515b52e2 Mon Sep 17 00:00:00 2001
From: Mateja <mail@matejamaric.com>
Date: Tue, 27 Jul 2021 14:10:40 +0200
Subject: Display PayPal buttons only if cart is not empty.

---
 client/src/views/Checkout.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'client/src/views/Checkout.vue')

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>
-- 
cgit v1.2.3

