Updated on 2026-08-14
This commit is contained in:
parent
beda6bca51
commit
104333fe4c
1 changed files with 17 additions and 1 deletions
|
|
@ -372,7 +372,23 @@ internal class StakingViewModel @Inject constructor(
|
|||
}
|
||||
|
||||
override fun onPrevClick() {
|
||||
stakingStateRouter.onPrevClick()
|
||||
if (value.currentStep == StakingStep.Confirmation) {
|
||||
when ((value.confirmationState as? StakingStates.ConfirmationState.Data)?.innerState) {
|
||||
InnerConfirmationStakingState.ASSENT -> {
|
||||
stakingStateRouter.onPrevClick()
|
||||
}
|
||||
null,
|
||||
InnerConfirmationStakingState.IN_PROGRESS,
|
||||
-> {
|
||||
// do nothing while transaction is in progress
|
||||
}
|
||||
InnerConfirmationStakingState.COMPLETED -> {
|
||||
onNextClick()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
stakingStateRouter.onPrevClick()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onRefreshSwipe(isRefreshing: Boolean) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue