diff --git a/src/User/components/Order/OrderSummary.jsx b/src/User/components/Order/OrderSummary.jsx index b40141d5..c10acaa2 100644 --- a/src/User/components/Order/OrderSummary.jsx +++ b/src/User/components/Order/OrderSummary.jsx @@ -23,7 +23,7 @@ function OrderSummary() { const shippingRate = 40.0; let shipping = calculateShipping(itemsTotal, shippingThreshold, shippingRate); - let total = itemsTotal + shipping; + let total = itemsTotal < 500 ? itemsTotal + shipping : itemsTotal; useEffect(() => { dispatch(setTotalAmountAction(total)); @@ -40,7 +40,7 @@ function OrderSummary() {