mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
Fix Pin native token
This commit is contained in:
parent
5905ac35d8
commit
4c37ed3a55
1 changed files with 5 additions and 4 deletions
|
@ -299,13 +299,14 @@ abstract class BalanceViewModelBase with Store {
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (b.asset == wallet.currency && pinNativeToken) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (pinNativeToken) {
|
||||
if (b.asset == wallet.currency) return 1;
|
||||
if (a.asset == wallet.currency) return -1;
|
||||
}
|
||||
|
||||
switch (sortBalanceBy) {
|
||||
case SortBalanceBy.FiatBalance:
|
||||
return double.parse(_getFiatBalance(
|
||||
|
|
Loading…
Reference in a new issue