enhance loyalty card

This commit is contained in:
2025-11-05 19:05:10 +03:00
parent 27f522e75c
commit d7a56ba929
3 changed files with 80 additions and 68 deletions

View File

@@ -653,7 +653,7 @@ export const selectGrandTotal = (state: RootState) => {
return (
subtotal +
taxAmount -
(state.order.useLoyaltyPoints ? loyaltyDiscount : 0) +
(state.order.useLoyaltyPoints && state.order.restaurant?.is_loyalty_enabled === 1 ? loyaltyDiscount : 0) +
deliveryFee
);};