mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 11:39:22 +00:00
Disable sendAll on native EVM Currencies (#1753)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
Some checks are pending
Cache Dependencies / test (push) Waiting to run
* fix: Issue with nownodes on older wallets * fix: Disable sendAll on native evm currencies
This commit is contained in:
parent
564f8e2c70
commit
cd5a1277a7
1 changed files with 11 additions and 1 deletions
|
@ -123,7 +123,17 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
|
||||||
@computed
|
@computed
|
||||||
bool get isBatchSending => outputs.length > 1;
|
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
|
@computed
|
||||||
String get pendingTransactionFiatAmount {
|
String get pendingTransactionFiatAmount {
|
||||||
|
|
Loading…
Reference in a new issue