Skip to content

Commit 5b38dd6

Browse files
committed
fix: Dont throw if customer not available
1 parent 01b424c commit 5b38dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/data/customer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const getCustomer = cache(async function () {
1212
return await sdk.store.customer
1313
.retrieve({}, { next: { tags: ["customer"] }, ...getAuthHeaders() })
1414
.then(({ customer }) => customer)
15-
.catch(medusaError)
15+
.catch(() => null)
1616
})
1717

1818
export const updateCustomer = cache(async function (

0 commit comments

Comments
 (0)