mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
CAKE-222 | fixed transaction priority picker on the send page
This commit is contained in:
@@ -38,6 +38,13 @@ abstract class SendViewModelBase with Store {
|
||||
: state = InitialExecutionState(),
|
||||
_cryptoNumberFormat = NumberFormat(),
|
||||
sendAll = false {
|
||||
final _priority = _settingsStore.transactionPriority;
|
||||
|
||||
if (!TransactionPriority.forWalletType(walletType).contains(_priority)) {
|
||||
_settingsStore.transactionPriority =
|
||||
TransactionPriority.forWalletType(walletType).first;
|
||||
}
|
||||
|
||||
_setCryptoNumMaximumFractionDigits();
|
||||
}
|
||||
|
||||
|
||||
@@ -36,9 +36,9 @@ abstract class SettingsViewModelBase with Store {
|
||||
PackageInfo.fromPlatform().then(
|
||||
(PackageInfo packageInfo) => currentVersion = packageInfo.version);
|
||||
|
||||
final priority = _settingsStore.transactionPriority;
|
||||
final _priority = _settingsStore.transactionPriority;
|
||||
|
||||
if (!TransactionPriority.forWalletType(_walletType).contains(priority)) {
|
||||
if (!TransactionPriority.forWalletType(_walletType).contains(_priority)) {
|
||||
_settingsStore.transactionPriority =
|
||||
TransactionPriority.forWalletType(_walletType).first;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user