Skip to content

Commit 5c8d84a

Browse files
committed
Update cart.ts
1 parent c671726 commit 5c8d84a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stores/cart.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const useCartStore = create<CartState>()(
4040
persist(
4141
(set) => ({
4242
cart: null,
43-
isLoading: true,
43+
isLoading: false, // Start with false since we'll show persisted data immediately
4444
setCart: (cart: RootObject | null) => set({ cart, isLoading: false }),
4545
updateCart: (newCart: RootObject) => {
4646
set({ cart: newCart });

0 commit comments

Comments
 (0)