chore: release [ci skip]
This commit is contained in:
@@ -124,11 +124,11 @@ export function CartProvider({ children }: { children: React.ReactNode }) {
|
||||
};
|
||||
|
||||
if (error) {
|
||||
createCartFunc();
|
||||
createCartFunc();
|
||||
} else if (!cartId) {
|
||||
const localCartId = localStorage.getItem(CART_ID);
|
||||
if (localCartId) setCartId(localCartId);
|
||||
else createCartFunc();
|
||||
else createCartFunc();
|
||||
}
|
||||
}, [eateryData, createCart, data, loading, error]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user