Skip to content

Commit

Permalink
reset store on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
elizavetaRa committed Mar 31, 2022
1 parent 09d15e7 commit 42aca32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/web-runtime/src/store/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ const actions = {
dispatch('hideModal')
dispatch('loadSettingsValues')

// Reset store
this.reset()

// Force redirect to login
if (forceRedirect) {
router.push({ name: 'login' })
Expand Down

0 comments on commit 42aca32

Please sign in to comment.