diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-13 07:28:54 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-13 09:09:28 +0800 |
commit | 711b307e6c56457647a98c6d76725aa90ac0d53e (patch) | |
tree | b49ec5b525aa22299f05eb8c0a1930cb7d085aa5 /packages/instant/src/redux/async_data.ts | |
parent | 1ab19a7c23eb1bb252c50d6dbe323d62aad61154 (diff) | |
download | dexon-sol-tools-711b307e6c56457647a98c6d76725aa90ac0d53e.tar dexon-sol-tools-711b307e6c56457647a98c6d76725aa90ac0d53e.tar.gz dexon-sol-tools-711b307e6c56457647a98c6d76725aa90ac0d53e.tar.bz2 dexon-sol-tools-711b307e6c56457647a98c6d76725aa90ac0d53e.tar.lz dexon-sol-tools-711b307e6c56457647a98c6d76725aa90ac0d53e.tar.xz dexon-sol-tools-711b307e6c56457647a98c6d76725aa90ac0d53e.tar.zst dexon-sol-tools-711b307e6c56457647a98c6d76725aa90ac0d53e.zip |
feat: prevent eth balance blink
Diffstat (limited to 'packages/instant/src/redux/async_data.ts')
-rw-r--r-- | packages/instant/src/redux/async_data.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/redux/async_data.ts b/packages/instant/src/redux/async_data.ts index 8999ef097..2682677b9 100644 --- a/packages/instant/src/redux/async_data.ts +++ b/packages/instant/src/redux/async_data.ts @@ -72,9 +72,9 @@ export const asyncData = { fetchAccountBalanceAndDispatchToStore: async (providerState: ProviderState, dispatch: Dispatch) => { const web3Wrapper = providerState.web3Wrapper; const account = providerState.account; - if (account.state !== AccountState.Ready) { - return; - } + // if (account.state !== AccountState.Ready) { + // return; + // } try { const address = account.address; const ethBalanceInWei = await web3Wrapper.getBalanceInWeiAsync(address); |