mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 04:44:43 +00:00
compare lower case currency titles
This commit is contained in:
parent
6254d08dc9
commit
489f15b807
1 changed files with 4 additions and 1 deletions
|
@ -131,7 +131,7 @@ abstract class SendViewModelBase with Store {
|
||||||
|
|
||||||
@computed
|
@computed
|
||||||
List<Template> get templates => sendTemplateViewModel.templates
|
List<Template> get templates => sendTemplateViewModel.templates
|
||||||
.where((template) => template.cryptoCurrency == _wallet.currency.title)
|
.where((template) => _isEqualCurrency(template.cryptoCurrency))
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
@computed
|
@computed
|
||||||
|
@ -231,4 +231,7 @@ abstract class SendViewModelBase with Store {
|
||||||
|
|
||||||
return priority.toString();
|
return priority.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool _isEqualCurrency(String currency) =>
|
||||||
|
currency.toLowerCase() == _wallet.currency.title.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue