feat(MED-100): show toast on delete

This commit is contained in:
2025-07-17 10:44:05 +03:00
parent 25b4e06b89
commit 7ccc45ce77
7 changed files with 78 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ export async function retrieveCart(cartId?: string) {
},
headers,
next,
cache: "force-cache",
//cache: "force-cache",
})
.then(({ cart }) => cart)
.catch(() => null);
@@ -396,7 +396,7 @@ export async function placeOrder(cartId?: string) {
const id = cartId || (await getCartId());
if (!id) {
return;
throw new Error("No existing cart found when placing an order");
}
const headers = {