2i2i / app_2i2i

Other
2 stars 0 forks source link

account balance should not be zero before getting result - should be null, showing - #682

Closed 2i2i closed 1 year ago

2i2i commented 1 year ago

after connecting to WC account when you open wallet page, account widget shortly shows "0" for balance, then changes to the actual balance (connect account with balance > 0) ~ this happens with a slower phone/internet especially it seems the code is assuming 0 balance before getting async answer from internet ~ but should assume null (show -) ~ also, it seems that the balance is asked from internet more than once ~ sometimes it just jumps to zero after having balance and then back to balance ideally, we should not reload the balance from internet if we don't change page or click reload button ~ but i guess we would need caching for that