Skip to content

Commit

Permalink
Merge pull request #84 from MakairaIO/TASCHEN-625
Browse files Browse the repository at this point in the history
fix(shopify): prevent CheckoutDoesNotExist Error
  • Loading branch information
René Mäkeler authored Jan 4, 2023
2 parents 68692eb + 7cc404f commit 542b77c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ export class StorefrontShopAdapterShopifyCart
}
}

if (responseGetCheckout.data.node.completedAt) {
if (
responseGetCheckout.data.node == null ||
responseGetCheckout.data.node.completedAt
) {
return createCheckout({ input: {} })
}

Expand Down

0 comments on commit 542b77c

Please sign in to comment.