mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
Fix unchecked wallet type call
This commit is contained in:
parent
015bb1ff04
commit
57e73142b7
2 changed files with 5 additions and 4 deletions
|
@ -226,9 +226,9 @@ class ReceivePage extends BasePage {
|
|||
Padding(
|
||||
padding: EdgeInsets.fromLTRB(24, 24, 24, 32),
|
||||
child: Text(
|
||||
!addressListViewModel.isSilentPayments
|
||||
? S.of(context).electrum_address_disclaimer
|
||||
: S.of(context).silent_payments_disclaimer,
|
||||
addressListViewModel.isSilentPayments
|
||||
? S.of(context).silent_payments_disclaimer
|
||||
: S.of(context).electrum_address_disclaimer,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 15,
|
||||
|
|
|
@ -452,7 +452,8 @@ abstract class WalletAddressListViewModelBase extends WalletChangeListenerViewMo
|
|||
wallet.type == WalletType.bitcoinCash;
|
||||
|
||||
@computed
|
||||
bool get isSilentPayments => bitcoin!.hasSelectedSilentPayments(wallet);
|
||||
bool get isSilentPayments =>
|
||||
wallet.type == WalletType.bitcoin && bitcoin!.hasSelectedSilentPayments(wallet);
|
||||
|
||||
@computed
|
||||
bool get isAutoGenerateSubaddressEnabled => wallet.type == WalletType.bitcoin
|
||||
|
|
Loading…
Reference in a new issue