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;