Updated on 2026-08-14
This commit is contained in:
commit
eecd4c92d3
4 changed files with 5 additions and 1 deletions
|
|
@ -166,7 +166,8 @@ internal class SendStateFactory(
|
|||
val reducedBy = sendState.reduceAmountBy.takeIf {
|
||||
notifications.none {
|
||||
it is SendNotification.Error.ExistentialDeposit ||
|
||||
it is SendNotification.Error.TransactionLimitError
|
||||
it is SendNotification.Error.TransactionLimitError ||
|
||||
it is SendNotification.Warning.HighFeeError
|
||||
}
|
||||
}
|
||||
return state.copy(
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ internal data class SendUiState(
|
|||
editAmountState = amountState,
|
||||
editFeeState = feeState,
|
||||
editRecipientState = recipientState,
|
||||
sendState = sendState,
|
||||
)
|
||||
} else {
|
||||
copy(
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ internal class SendAmountFieldChangeConverter(
|
|||
val isZero = if (amountTextField.isFiatValue) decimalFiatValue.isNullOrZero() else decimalCryptoValue.isZero()
|
||||
return state.copyWrapped(
|
||||
isEditState = isEditState,
|
||||
sendState = state.sendState?.copy(reduceAmountBy = null),
|
||||
amountState = amountState.copy(
|
||||
isPrimaryButtonEnabled = !isExceedBalance && !isZero,
|
||||
amountTextField = amountTextField.copy(
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ internal class SendAmountFieldMaxAmountConverter(
|
|||
val fiatValue = decimalFiatValue?.parseBigDecimal(fiatDecimals, roundingMode = RoundingMode.HALF_UP).orEmpty()
|
||||
return state.copyWrapped(
|
||||
isEditState = isEditState,
|
||||
sendState = state.sendState?.copy(reduceAmountBy = null),
|
||||
amountState = amountState.copy(
|
||||
isPrimaryButtonEnabled = true,
|
||||
amountTextField = amountTextField.copy(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue