allow transferCart to fail on register

This commit is contained in:
2025-09-04 13:36:46 +03:00
parent c7f89723e3
commit 0037241558

View File

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