Skip to content

Commit

Permalink
Add block event listener to refresh balance
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldsg20 committed Oct 17, 2024
1 parent 9dd6969 commit fe5cdf7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/store/session/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const actions: ActionTree<SessionState, RootState> = {
commit(constants.SESSION_SET_RLOGIN, rLoginResponse);
commit(constants.SESSION_SET_RLOGIN_INSTANCE, rLogin);
commit(constants.SESSION_SET_WEB3_INSTANCE, markRaw(provider));
provider.on('block', () => dispatch(constants.WEB3_SESSION_ADD_BALANCE));
return provider.listAccounts();
})
.then((accounts) => {
Expand Down

0 comments on commit fe5cdf7

Please sign in to comment.