Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed
- Fixed issue with unauthenticated B2C users in checkout shipping step

## [1.10.1] - 2023-08-17
### Fixed
- Fix conditional chain causing issue when retrieving Cost Center data
Expand Down
7 changes: 6 additions & 1 deletion checkout-ui-custom/checkout6-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,13 @@ const MAX_TIME_EXPIRATION = 1000 * 60 * 5 // 5 minutes
url: `${rootPath}/_v/private/b2b-checkout-settings/${
isWorkspace() ? `?v=${ts}` : ''
}`,
error: function(err) {
window.sessionStorage.removeItem('b2b-checkout-settings')

return
}
}).then(function (response) {
if (Object.keys(response).length === 0) {
if (Object.keys(response).length === 0 || response.error === 'User not authenticated') {
window.sessionStorage.removeItem('b2b-checkout-settings')

return
Expand Down
2 changes: 1 addition & 1 deletion node/resolvers/Routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
ctx.response.body = {
error: 'User not authenticated',
}
ctx.response.status = 200
ctx.response.status = 400

ctx.set('cache-control', 'no-cache')
} else {
Expand Down
2 changes: 1 addition & 1 deletion node/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3615,7 +3615,7 @@ stack-utils@^2.0.3:
dependencies:
escape-string-regexp "^2.0.0"

"stats-lite@github:vtex/node-stats-lite#dist":
stats-lite@vtex/node-stats-lite#dist:
version "2.2.0"
resolved "https://codeload.github.com/vtex/node-stats-lite/tar.gz/1b0d39cc41ef7aaecfd541191f877887a2044797"
dependencies:
Expand Down