diff --git a/client/src/features/basket/BasketSummary.tsx b/client/src/features/basket/BasketSummary.tsx index ae2f955..c941161 100644 --- a/client/src/features/basket/BasketSummary.tsx +++ b/client/src/features/basket/BasketSummary.tsx @@ -5,8 +5,7 @@ import { currencyFormat } from '../../app/util/util'; export default function BasketSummary() { const { basket } = useStoreContext(); const subtotal = basket?.items.reduce((sum, item) => sum + (item.quantity * item.price), 0) ?? 0; - const deliveryFee = subtotal > 10000 ? 0 : 500; - + const deliveryFee = (subtotal > 10000 || subtotal === 0) ? 0: 500; return ( <>