Updated on 2026-08-14

This commit is contained in:
Tangem 2024-05-30 13:48:35 +05:00
commit eecd4c92d3
4 changed files with 5 additions and 1 deletions

View file

@ -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(

View file

@ -71,6 +71,7 @@ internal data class SendUiState(
editAmountState = amountState,
editFeeState = feeState,
editRecipientState = recipientState,
sendState = sendState,
)
} else {
copy(

View file

@ -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(

View file

@ -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(