saleor: fix the checkout flow

This commit is contained in:
Zaiste
2021-05-14 14:53:53 +02:00
parent 3e72dfcb6e
commit df3d85f86e
7 changed files with 31 additions and 26 deletions

View File

@@ -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;