Skip to content

Commit

Permalink
🎨 Clear book session on wallet disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 committed Sep 11, 2024
1 parent 922573f commit 625e92c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions store/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ export default class Wallet extends VuexModule {
this.context.commit('setLikerInfo', null)
this.context.commit('setType', '')
this.context.commit('setSigner', null)
this.context.dispatch('book-api/clearSession', null, { root: true })

}

get getType() {
Expand Down

0 comments on commit 625e92c

Please sign in to comment.