fixes
- clean coupon on success order - in menu on clicking on the sticky categories make scroll jump to the category title postion exactly
This commit is contained in:
@@ -364,6 +364,19 @@ const orderSlice = createSlice({
|
||||
state.collectionMethod = "";
|
||||
state.paymentMethod = "";
|
||||
state.loyaltyValidationError = null;
|
||||
state.discount = {
|
||||
value: 0,
|
||||
isGift: false,
|
||||
isDiscount: false,
|
||||
};
|
||||
state.plateCar = "";
|
||||
state.pickupDate = "";
|
||||
state.pickupTime = "";
|
||||
state.pickupType = "";
|
||||
state.estimateWay = "";
|
||||
state.order = null;
|
||||
state.splitBillAmount = 0;
|
||||
state.customerName = "";
|
||||
// Clear all cart data from localStorage
|
||||
if (typeof window !== "undefined") {
|
||||
Object.values(CART_STORAGE_KEYS)
|
||||
|
||||
Reference in New Issue
Block a user