feat(MED-100): show toast on delete
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user