Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions features/storefront/lib/data/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function setCheckoutContact(data: {
await getAuthHeaders()
);

revalidateTag("cart");
(revalidateTag as any)("cart");
return { success: true };
} catch (error) {
const message =
Expand Down Expand Up @@ -123,7 +123,7 @@ export async function setCheckoutDelivery(data: {
await getAuthHeaders()
);

revalidateTag("cart");
(revalidateTag as any)("cart");
return { success: true };
} catch (error) {
const message =
Expand Down Expand Up @@ -251,7 +251,7 @@ export async function placeOrder(paymentSessionId?: string) {

if (completeActiveCart?.id) {
await removeCartId();
revalidateTag("cart");
(revalidateTag as any)("cart");

const secretKeyParam = completeActiveCart.secretKey
? `?secretKey=${completeActiveCart.secretKey}`
Expand Down
2 changes: 1 addition & 1 deletion features/storefront/lib/data/payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ export const initiatePaymentSession = async (cartId: string, paymentProviderId:
}
);

revalidateTag("cart");
(revalidateTag as any)("cart");
return session;
};