allow transferCart to fail on register
This commit is contained in:
@@ -312,7 +312,12 @@ export async function medusaLoginOrRegister(credentials: {
|
|||||||
|
|
||||||
const customerCacheTag = await getCacheTag("customers");
|
const customerCacheTag = await getCacheTag("customers");
|
||||||
revalidateTag(customerCacheTag);
|
revalidateTag(customerCacheTag);
|
||||||
await transferCart();
|
|
||||||
|
try {
|
||||||
|
await transferCart();
|
||||||
|
} catch (e) {
|
||||||
|
console.error("Failed to transfer cart", e);
|
||||||
|
}
|
||||||
|
|
||||||
const customer = await retrieveCustomer();
|
const customer = await retrieveCustomer();
|
||||||
if (!customer) {
|
if (!customer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user