Updated on 2026-08-14

This commit is contained in:
Tangem 2025-11-21 15:10:10 +05:00
parent 39f385d4ba
commit ca9e191cb8
7 changed files with 2 additions and 11 deletions

View file

@ -332,7 +332,7 @@ internal class DefaultUserWalletsListRepository(
sensitiveInformationRepository.getAll(allKeys)
.doOnSuccess { sensitiveInfo ->
updateWallets { userWallets.updateWith(sensitiveInfo) }
updateWallets { wallets -> wallets?.updateWith(sensitiveInfo) }
}
.doOnFailure { raise(UnlockWalletError.UnableToUnlock) }
}

View file

@ -572,7 +572,6 @@ internal class ChildFactory @Inject constructor(
context = context,
params = UpdateAccessCodeComponent.Params(
userWalletId = route.userWalletId,
isFirstSetup = route.isFirstSetup,
),
componentFactory = updateAccessCodeComponentFactory,
)

View file

@ -371,7 +371,6 @@ sealed class AppRoute(val path: String) : Route {
@Serializable
data class UpdateAccessCode(
val userWalletId: UserWalletId,
val isFirstSetup: Boolean,
) : AppRoute(path = "/update_access_code/${userWalletId.stringValue}")
@Serializable

View file

@ -7,7 +7,6 @@ import com.tangem.domain.models.wallet.UserWalletId
interface UpdateAccessCodeComponent : ComposableContentComponent {
data class Params(
val userWalletId: UserWalletId,
val isFirstSetup: Boolean,
)
interface Factory : ComponentFactory<Params, UpdateAccessCodeComponent>
}

View file

@ -75,7 +75,6 @@ internal class CreateWalletBackupModel @Inject constructor(
router.replaceCurrent(
route = AppRoute.UpdateAccessCode(
userWalletId = params.userWalletId,
isFirstSetup = true,
),
)
} else {

View file

@ -43,11 +43,7 @@ internal class UpdateAccessCodeModel @Inject constructor(
}
override fun onAccessCodeUpdated(userWalletId: UserWalletId) {
if (params.isFirstSetup) {
stackNavigation.push(UpdateAccessCodeRoute.SetupFinished)
} else {
router.pop()
}
}
inner class MobileWalletSetupFinishedComponentModelCallbacks : MobileWalletSetupFinishedComponent.ModelCallbacks {

View file

@ -365,7 +365,6 @@ internal class WalletSettingsModel @Inject constructor(
router.push(
route = AppRoute.UpdateAccessCode(
userWalletId = params.userWalletId,
isFirstSetup = !authorizationRequired,
),
)
}