diff --git a/checkout-ui-custom/checkout6-custom.js b/checkout-ui-custom/checkout6-custom.js index 8ee74a1..65706c3 100644 --- a/checkout-ui-custom/checkout6-custom.js +++ b/checkout-ui-custom/checkout6-custom.js @@ -336,6 +336,10 @@ const MAX_TIME_EXPIRATION = 1000 * 60 * 5 // 5 minutes return item.id === 'b2b-quotes-graphql' }) + const hasB2bQuote = index !== -1 + + if (!hasB2bQuote) return + const { quoteId } = customData.customApps[index].fields if (index !== -1 && quoteId && parseInt(quoteId, 10) !== 0) {