mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
minor fix [skip ci]
This commit is contained in:
@@ -427,10 +427,10 @@ abstract class BalanceViewModelBase with Store {
|
||||
if (wallet.walletInfo.favoriteTokenAddress != null) {
|
||||
return formattedBalances.firstWhereOrNull((item) => (getTokenAddressBasedOnWallet(item.asset) ==
|
||||
wallet.walletInfo.favoriteTokenAddress)) ??
|
||||
formattedBalances.elementAt(0);
|
||||
formattedBalances.elementAtOrNull(0);
|
||||
}
|
||||
|
||||
return formattedBalances.elementAt(0);
|
||||
return formattedBalances.elementAtOrNull(0);
|
||||
}
|
||||
|
||||
String? getTokenAddressBasedOnWallet(CryptoCurrency asset) {
|
||||
|
||||
Reference in New Issue
Block a user