diff --git a/CHANGELOG.md b/CHANGELOG.md index b5d8511..4d35b7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Removed + +- Shipping conditional that erases `b2bCheckoutSettings`; Not necessary with new version of omnishipping + ## [1.11.3] - 2024-07-15 ### Fixed diff --git a/checkout-ui-custom/checkout6-custom.js b/checkout-ui-custom/checkout6-custom.js index e92fcaa..32935a5 100644 --- a/checkout-ui-custom/checkout6-custom.js +++ b/checkout-ui-custom/checkout6-custom.js @@ -281,28 +281,6 @@ const MAX_TIME_EXPIRATION = 1000 * 60 * 5 // 5 minutes } }, 500) } - if (step.includes('shipping')) { - const canEditAddress = 'add-shipping' - const isLoggedIn = - window.vtexjs && - window.vtexjs.checkout && - window.vtexjs.checkout.orderForm && - window.vtexjs.checkout.orderForm.loggedIn - - const checkShipping = setInterval(function () { - if ( - !isLoggedIn || - (b2bCheckoutSettings && - b2bCheckoutSettings.permissions.includes(canEditAddress)) - ) { - clearInterval(checkShipping) - window.b2bCheckoutSettings = undefined - } - }, 500) - } - if (step.includes('payment') && b2bCheckoutSettings == undefined) { - b2bCheckoutSettings = settings - } } const applyMarketingData = function (organizationId, costCenterId) {