Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-20 11:27:43 -07:00
parent 5b516f2c9b
commit a82d8cdbba
43 changed files with 829 additions and 89 deletions

View file

@ -97,19 +97,15 @@ internal class CreateWalletBackupModel @Inject constructor(
stackNavigation.push(
configuration = CreateWalletBackupRoute.BackupCompleted(
isUpgradeFlow = params.isUpgradeFlow,
isLastScreen = !params.shouldSetAccessCode,
isLastScreen = params.nextScreen == null,
),
)
}
fun onManualBackupCompleted() {
if (params.shouldSetAccessCode) {
router.replaceCurrent(
route = AppRoute.UpdateAccessCode(
userWalletId = params.userWalletId,
source = params.analyticsSource,
),
)
val nextScreen = params.nextScreen
if (nextScreen != null) {
router.replaceCurrent(nextScreen)
} else {
router.pop()
}

View file

@ -60,7 +60,12 @@ internal class UpdateAccessCodeModel @Inject constructor(
inner class MobileWalletSetupFinishedComponentModelCallbacks : MobileWalletSetupFinishedComponent.ModelCallbacks {
override fun onFinishClick() {
router.pop()
val nextScreen = params.nextScreen
if (nextScreen != null) {
router.replaceCurrent(nextScreen)
} else {
router.pop()
}
}
}
}