Updated on 2026-08-14
This commit is contained in:
parent
592f25f69a
commit
8522ddfe85
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ private fun handleEraseWallet(action: DetailsAction.EraseWallet, state: DetailsS
|
|||
return when (action) {
|
||||
DetailsAction.EraseWallet.Check -> {
|
||||
val notAllowedByCard = state.card?.settingsMask?.contains(Settings.ProhibitPurgeWallet) == true
|
||||
val notEmpty = state.wallet?.transactions?.isNullOrEmpty() != true ||
|
||||
val notEmpty = state.wallet?.recentTransactions?.isNullOrEmpty() != true ||
|
||||
state.wallet.amounts.toList().unzip().second.map { it.value?.isZero() }.contains(false)
|
||||
val eraseWalletState = when {
|
||||
notAllowedByCard -> EraseWalletState.NotAllowedByCard
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ private fun internalReduce(action: Action, state: AppState): WalletState {
|
|||
val fiatRate = state.globalState.conversionRates.getRate(action.wallet.blockchain.currency)
|
||||
val fiatAmount = fiatRate?.let { amount?.toFiatString(it, fiatCurrencySymbol) }
|
||||
|
||||
val pendingTransactions = action.wallet.transactions
|
||||
val pendingTransactions = action.wallet.recentTransactions
|
||||
.toPendingTransactions(action.wallet.address)
|
||||
|
||||
val sendButtonEnabled = amount?.isZero() == false || token?.value?.isZero() == false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue