This commit is contained in:
M
2020-09-28 18:47:43 +03:00
parent 51cf11127c
commit e3678d2cf9
32 changed files with 482 additions and 904 deletions
+5 -3
View File
@@ -70,15 +70,17 @@ abstract class SendViewModelBase with Store {
@computed
String get balance {
String balance = '0.0';
if (_wallet is MoneroWallet) {
_wallet.balance.formattedUnlockedBalance;
balance = _wallet.balance.formattedUnlockedBalance as String ?? '';
}
if (_wallet is BitcoinWallet) {
_wallet.balance.confirmedFormatted;
balance = _wallet.balance.confirmedFormatted as String ?? '';
}
return '0.0';
return balance;
}
@computed