mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-03 10:14:04 +00:00
fix: total wallet balance not displaying
Fixes: #929. Calculates total wallet balance when it is requested.
This commit is contained in:
parent
078e9758f0
commit
7f0720608e
@ -205,6 +205,8 @@ proc updateAccount*(self: WalletModel, address: string) =
|
||||
self.events.emit("accountsUpdated", Args())
|
||||
|
||||
proc getTotalFiatBalance*(self: WalletModel): string =
|
||||
if self.totalBalance == 0.0:
|
||||
self.calculateTotalFiatBalance()
|
||||
fmt"{self.totalBalance:.2f}"
|
||||
|
||||
proc convertValue*(self: WalletModel, balance: string, fromCurrency: string, toCurrency: string): float =
|
||||
|
Loading…
x
Reference in New Issue
Block a user