mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
saleor: fix the checkout flow
This commit is contained in:
@@ -24,11 +24,10 @@ export const handler: SWRHook<
|
||||
let checkout
|
||||
|
||||
if (checkoutId) {
|
||||
const checkoutId = getCheckoutId().checkoutToken;
|
||||
const data = await fetch({
|
||||
...options,
|
||||
variables: {
|
||||
checkoutId: getCheckoutId().checkoutToken,
|
||||
},
|
||||
variables: { checkoutId },
|
||||
})
|
||||
|
||||
checkout = data;
|
||||
|
Reference in New Issue
Block a user