Skip to content

Commit

Permalink
Run Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ataideverton committed Oct 10, 2024
1 parent c934f0b commit 0af3d72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
15 changes: 8 additions & 7 deletions checkout-ui-custom/checkout6-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ const MAX_TIME_EXPIRATION = 1000 * 60 * 5 // 5 minutes
wrap.prepend(`
<div class="b2b-purchase-order-number">
<p class="b2b-purchase-order-number-label">
<label for="cart-b2b-purchase-order-number">${getTranslation().cartPurchaseOrderLabel
}</label>
<label for="cart-b2b-purchase-order-number">${
getTranslation().cartPurchaseOrderLabel
}</label>
</p>
<input class="input-small b2b-purchase-order-number-input" type="text" id="cart-b2b-purchase-order-number" value="${currValue}">
</div>
Expand Down Expand Up @@ -188,7 +189,7 @@ const MAX_TIME_EXPIRATION = 1000 * 60 * 5 // 5 minutes
app: 'b2b-quotes-graphql',
field: 'quoteId',
})
.then(function () { })
.then(function () {})
})
}
}
Expand Down Expand Up @@ -316,7 +317,6 @@ const MAX_TIME_EXPIRATION = 1000 * 60 * 5 // 5 minutes
}

const handleSettings = function () {

if (!settings) return

if (settings.showPONumber === true) {
Expand Down Expand Up @@ -444,8 +444,9 @@ const MAX_TIME_EXPIRATION = 1000 * 60 * 5 // 5 minutes
const ts = new Date().getTime()

$.ajax({
url: `${rootPath}/_v/private/b2b-checkout-settings/${isWorkspace() ? `?v=${ts}` : ''
}`,
url: `${rootPath}/_v/private/b2b-checkout-settings/${
isWorkspace() ? `?v=${ts}` : ''
}`,
}).then(function (response) {
if (Object.keys(response).length === 0) {
window.sessionStorage.removeItem('b2b-checkout-settings')
Expand Down Expand Up @@ -506,4 +507,4 @@ const MAX_TIME_EXPIRATION = 1000 * 60 * 5 // 5 minutes
}

$(window).on('hashchange', () => initialize())
})();
})()
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1430,11 +1430,6 @@ isexe@^2.0.0:
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=

jest-when@^3.5.2:
version "3.5.2"
resolved "https://registry.yarnpkg.com/jest-when/-/jest-when-3.5.2.tgz#651d8a73751ab55c29698d388dffd3460cd52bdc"
integrity sha512-4rDvnhaWh08RcPsoEVXgxRnUIE9wVIbZtGqZ5x2Wm9Ziz9aQs89PipQFmOK0ycbEhVAgiV3MUeTXp3Ar4s2FcQ==

"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
Expand Down

0 comments on commit 0af3d72

Please sign in to comment.