fix_: sometimes balances are not updated until relogin (#21748)

a61f28bf...5371520f

Signed-off-by: Brian Sztamfater <brian@status.im>
This commit is contained in:
Brian Sztamfater 2024-12-06 13:32:05 -03:00 committed by alwx
parent d35c2d2616
commit 5b1f25d545
No known key found for this signature in database
GPG Key ID: D9E51F0C88DB4E2A
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@
{:db (assoc-in db [:wallet :ui :tokens-loading address] true)
:fx [[:json-rpc/call
[{:method "wallet_fetchOrGetCachedWalletBalances"
:params [[address]]
:params [[address] true]
:on-success [:wallet/store-wallet-token address]
:on-error [:wallet/get-wallet-token-for-account-failed address]}]]]}))

View File

@ -125,7 +125,7 @@
(let [expected-effects {:db {:wallet {:ui {:tokens-loading {address true}}}}
:fx [[:json-rpc/call
[{:method "wallet_fetchOrGetCachedWalletBalances"
:params [[address]]
:params [[address] true]
:on-success [:wallet/store-wallet-token address]
:on-error [:wallet/get-wallet-token-for-account-failed
address]}]]]}]