diff --git a/src/components/OrderSummary/OrderSummary.tsx b/src/components/OrderSummary/OrderSummary.tsx
index b8fb973..0aced66 100644
--- a/src/components/OrderSummary/OrderSummary.tsx
+++ b/src/components/OrderSummary/OrderSummary.tsx
@@ -44,13 +44,17 @@ export default function OrderSummary() {
{t("cart.basketTotal")}
- {orderType != OrderType.DineIn &&
-
{t("cart.deliveryFee")}
-
-
}
+ {orderType != OrderType.DineIn && (
+
+
{t("cart.deliveryFee")}
+
+
+ )}
{t("cart.tax")}
diff --git a/src/features/order/orderSlice.ts b/src/features/order/orderSlice.ts
index 6fb7cff..c02a2a9 100644
--- a/src/features/order/orderSlice.ts
+++ b/src/features/order/orderSlice.ts
@@ -650,7 +650,11 @@ export const selectGrandTotal = (state: RootState) => {
? Number(state.order.restaurant?.delivery_fees) || 0
: 0;
- return subtotal + taxAmount - loyaltyDiscount + deliveryFee;
-};
+ return (
+ subtotal +
+ taxAmount -
+ (state.order.useLoyaltyPoints ? loyaltyDiscount : 0) +
+ deliveryFee
+ );};
export default orderSlice.reducer;