From 90635524596ee8a0d87bf8dd5db7103efe5e6d28 Mon Sep 17 00:00:00 2001 From: Fluffy Date: Fri, 24 May 2024 12:11:31 +0100 Subject: [PATCH] Fix the checkout --- front/src/pages/Checkout.svelte | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/front/src/pages/Checkout.svelte b/front/src/pages/Checkout.svelte index dbc9865..7953374 100644 --- a/front/src/pages/Checkout.svelte +++ b/front/src/pages/Checkout.svelte @@ -38,9 +38,7 @@ } else { totalPrice = 1.50 + Cart.getTotalPrice(); } - unavailableItems = Cart.getEntries().some(([_, item]) => { - item.data.availability === false - }); + unavailableItems = Cart.getEntries().some(([_, item]) => !item.data.availability); }); let leafletMap: Map;