mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 19:21:23 +00:00
Create a new cart if Spree can't find the current using a token
This commit is contained in:
@@ -60,6 +60,10 @@ const createCustomizedFetchFetcher: CreateCustomizedFetchFetcher = (
|
||||
data: Object.setPrototypeOf({ data }, { response }),
|
||||
}
|
||||
} catch (error) {
|
||||
if (error instanceof FetchError) {
|
||||
throw error
|
||||
}
|
||||
|
||||
throw new FetchError(null, request, null, error.message)
|
||||
}
|
||||
} catch (error) {
|
||||
|
Reference in New Issue
Block a user