allow transferCart to fail on login/register

This commit is contained in:
2025-09-04 13:19:09 +03:00
parent 6e9cde6b95
commit 65eb6c780d

View File

@@ -272,7 +272,12 @@ export async function medusaLoginOrRegister(credentials: {
password,
});
await setAuthToken(token as string);
try {
await transferCart();
} catch (e) {
console.error("Failed to transfer cart", e);
}
const customerCacheTag = await getCacheTag("customers");
revalidateTag(customerCacheTag);