Create a new cart if Spree can't find the current using a token

This commit is contained in:
tniezg
2021-08-24 16:25:05 +02:00
parent d98a75503d
commit 5e743f0e30
2 changed files with 39 additions and 22 deletions

View File

@@ -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) {