mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
saleor: shall the cart appear!
This commit is contained in:
@@ -30,14 +30,15 @@ export const handler: SWRHook<
|
||||
checkoutId: getCheckoutId().checkoutToken,
|
||||
},
|
||||
})
|
||||
checkout = data.node
|
||||
|
||||
checkout = data;
|
||||
}
|
||||
|
||||
if (checkout?.completedAt || !checkoutId) {
|
||||
checkout = await checkoutCreate(fetch)
|
||||
}
|
||||
|
||||
return checkoutToCart({ checkout })
|
||||
return checkoutToCart(checkout);
|
||||
},
|
||||
useHook: ({ useData }) => (input) => {
|
||||
const response = useData({
|
||||
|
Reference in New Issue
Block a user