Skip to content

Commit 14cd552

Browse files
committed
Update useCart.js
1 parent c3dc5ab commit 14cd552

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

store/useCart.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export const useCart = defineStore(
1717
const {
1818
result: cartResult,
1919
refetch: refetchCart,
20-
} = useQuery(GET_CART_QUERY, null, { fetchPolicy: "network-only" });
20+
} = useQuery(GET_CART_QUERY, null, {
21+
fetchPolicy: "network-only",
22+
});
2123

2224
watch(cartResult, (newCartResult) => {
2325
if (newCartResult && newCartResult.cart) {
@@ -144,5 +146,5 @@ export const useCart = defineStore(
144146
storage: piniaPluginPersistedstate.localStorage,
145147
paths: ["cart", "cartTotals"],
146148
},
147-
}
149+
},
148150
);

0 commit comments

Comments
 (0)