compare lower case currency titles

This commit is contained in:
Godwin Asuquo 2022-01-31 13:54:24 +01:00
parent 6254d08dc9
commit 489f15b807

View file

@ -131,7 +131,7 @@ abstract class SendViewModelBase with Store {
@computed
List<Template> get templates => sendTemplateViewModel.templates
.where((template) => template.cryptoCurrency == _wallet.currency.title)
.where((template) => _isEqualCurrency(template.cryptoCurrency))
.toList();
@computed
@ -231,4 +231,7 @@ abstract class SendViewModelBase with Store {
return priority.toString();
}
bool _isEqualCurrency(String currency) =>
currency.toLowerCase() == _wallet.currency.title.toLowerCase();
}