Disable sendAll on native EVM Currencies (#1753)

* fix: Issue with nownodes on older wallets

* fix: Disable sendAll on native evm currencies
This commit is contained in:
David Adegoke
2024-10-17 04:17:29 +03:00
committed by GitHub
parent 564f8e2c70
commit cd5a1277a7
+11 -1
View File
@@ -123,7 +123,17 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
@computed
bool get isBatchSending => outputs.length > 1;
bool get shouldDisplaySendALL => walletType != WalletType.solana;
bool get shouldDisplaySendALL {
if (walletType == WalletType.solana) return false;
if (walletType == WalletType.ethereum && selectedCryptoCurrency == CryptoCurrency.eth)
return false;
if (walletType == WalletType.polygon && selectedCryptoCurrency == CryptoCurrency.matic)
return false;
return true;
}
@computed
String get pendingTransactionFiatAmount {