allow transferCart to fail on register

This commit is contained in:
2025-09-04 13:36:46 +03:00
parent 65eb6c780d
commit e0940a1600

View File

@@ -312,7 +312,12 @@ export async function medusaLoginOrRegister(credentials: {
const customerCacheTag = await getCacheTag("customers"); const customerCacheTag = await getCacheTag("customers");
revalidateTag(customerCacheTag); revalidateTag(customerCacheTag);
try {
await transferCart(); await transferCart();
} catch (e) {
console.error("Failed to transfer cart", e);
}
const customer = await retrieveCustomer(); const customer = await retrieveCustomer();
if (!customer) { if (!customer) {