Updated on 2026-08-14
This commit is contained in:
parent
564e558fcc
commit
3a9073f9f2
1 changed files with 8 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue