Updated on 2026-08-14

This commit is contained in:
Tangem 2023-05-30 14:44:10 +03:00
parent c9917f1c05
commit 5e4d8a9113
4 changed files with 15 additions and 7 deletions

View file

@ -41,6 +41,7 @@ class FeeReducer : SendInternalReducer {
}
private fun handleAction(action: FeeAction, sendState: SendState, state: FeeState): SendState {
val result = when (action) {
is FeeAction.RequestFee -> {
state.copy(progressState = ProgressState.Loading)
@ -54,8 +55,7 @@ class FeeReducer : SendInternalReducer {
)
}
is FeeAction.FeeCalculation.SetFeeResult -> {
val fees = action.fee
when (fees) {
when (val fees = action.fee) {
is TransactionFee.Single -> {
val feeType = FeeType.SINGLE
val currentFee = createValueOfFeeAmount(feeType, fees)
@ -120,4 +120,6 @@ class FeeReducer : SendInternalReducer {
private fun getCurrentFeeType(state: FeeState): FeeType {
return if (state.selectedFeeType == FeeType.SINGLE) FeeType.NORMAL else state.selectedFeeType
}
}