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");
|
||||
revalidateTag(customerCacheTag);
|
||||
|
||||
try {
|
||||
await transferCart();
|
||||
} catch (e) {
|
||||
console.error("Failed to transfer cart", e);
|
||||
}
|
||||
|
||||
const customer = await retrieveCustomer();
|
||||
if (!customer) {
|
||||
|
||||
Reference in New Issue
Block a user