Skip to content

Commit 0ce3b6f

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

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

store/useCart.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ export const useCart = defineStore(
1414
const error = ref(null);
1515
const cartTotals = ref({});
1616

17-
const {
18-
result: cartResult,
19-
refetch: refetchCart,
20-
} = useQuery(GET_CART_QUERY, null, {
21-
fetchPolicy: "network-only",
22-
});
17+
const { result: cartResult, refetch: refetchCart } = useQuery(
18+
GET_CART_QUERY,
19+
null,
20+
{
21+
fetchPolicy: "network-only",
22+
}
23+
);
2324

2425
watch(cartResult, (newCartResult) => {
2526
if (newCartResult && newCartResult.cart) {
@@ -146,5 +147,5 @@ export const useCart = defineStore(
146147
storage: piniaPluginPersistedstate.localStorage,
147148
paths: ["cart", "cartTotals"],
148149
},
149-
},
150+
}
150151
);

0 commit comments

Comments
 (0)