Updated on 2026-08-14

This commit is contained in:
Tangem 2023-06-07 18:40:45 +03:00
parent 564e558fcc
commit 3a9073f9f2

View file

@ -29,21 +29,17 @@ class FeeReducer : SendInternalReducer {
state.copy(controlsLayoutIsVisible = !state.controlsLayoutIsVisible)
}
is FeeActionUi.ChangeSelectedFee -> {
state.fees?.let {
val currentFee = createValueOfFeeAmount(action.feeType, it)
state.copy(
selectedFeeType = action.feeType,
currentFee = currentFee,
)
} ?: state
// TODO?
val currentFee = state.fees?.let {
createValueOfFeeAmount(action.feeType, it)
}
state.copy(
selectedFeeType = action.feeType,
currentFee = currentFee
)
}
is FeeActionUi.ChangeIncludeFee -> state.copy(feeIsIncluded = action.isIncluded)
}
return updateLastState(sendState.copy(
feeState = result,
transactionExtrasState = TransactionExtrasState()
), result)
return updateLastState(sendState.copy(feeState = result), result)
}
private fun handleAction(action: FeeAction, sendState: SendState, state: FeeState): SendState {