Skip to content

Commit d3e3627

Browse files
fix: Passing { newToken: null } as a payload
1 parent be94e29 commit d3e3627

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4545
- ESLint warnings caused by the double import - @lukaszjedrasik
4646
- Fix Order History Pagination - @AishwaryShrivastav / @lukaszjedrasik ([#4599](https://github.com/vuestorefront/vue-storefront/issues/4599))
4747
- Fix: Updating URL's params/query params with proper child SKU if options changes - @lukaszjedrasik ([#5981](https://github.com/vuestorefront/vue-storefront/issues/5981))
48+
- Fix: Passing `newToken: null` as a payload inside `clearCurrentUser` action - @lukaszjedrasik ([#5565](https://github.com/vuestorefront/vue-storefront/issues/5565))
4849

4950
### Changed / Improved
5051

core/modules/user/store/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const actions: ActionTree<UserState, RootState> = {
221221
}
222222
},
223223
clearCurrentUser ({ commit, dispatch }) {
224-
commit(types.USER_TOKEN_CHANGED, '')
224+
commit(types.USER_TOKEN_CHANGED, { newToken: null })
225225
commit(types.USER_GROUP_TOKEN_CHANGED, '')
226226
commit(types.USER_GROUP_CHANGED, null)
227227
commit(types.USER_INFO_LOADED, null)

0 commit comments

Comments
 (0)