Skip to content

Commit

Permalink
feat(wallet): adds onAddress change listener
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodressel authored and mmpetarpeshev committed Jun 25, 2024
1 parent ce8ae8e commit 33dcff5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ export default createStore({
onNetworkChange: ({ networkId }) => {
dispatch('selectNetwork', networkId);
},
onAddressChange: ({ current }) => {
const [address] = Object.keys(current);
commit('setAddress', address);
},
name: 'DEX',
onDisconnect() {
commit('resetState');
Expand Down

0 comments on commit 33dcff5

Please sign in to comment.