diff --git a/CHANGELOG.md b/CHANGELOG.md index 85d5ebc..956d4ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Fixed that if there is another custom application in the custom data, the "B2BQuotesLockingModal.tsx" component would break on its own. + ## [1.6.0] - 2023-08-10 + ### Added diff --git a/react/components/B2BQuotesLockingModal.tsx b/react/components/B2BQuotesLockingModal.tsx index 9dd84d9..436b3d1 100644 --- a/react/components/B2BQuotesLockingModal.tsx +++ b/react/components/B2BQuotesLockingModal.tsx @@ -100,7 +100,12 @@ const B2BQuotesLockingModal = () => { const { orderForm } = orderFormData const { customData, items } = orderForm - if (!customData?.customApps) { + if ( + !customData?.customApps || + !customData?.customApps.some( + (item: any) => item.id === 'b2b-quotes-graphql' + ) + ) { return }