Updated on 2026-08-14
This commit is contained in:
parent
39f385d4ba
commit
ca9e191cb8
7 changed files with 2 additions and 11 deletions
|
|
@ -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) }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -572,7 +572,6 @@ internal class ChildFactory @Inject constructor(
|
|||
context = context,
|
||||
params = UpdateAccessCodeComponent.Params(
|
||||
userWalletId = route.userWalletId,
|
||||
isFirstSetup = route.isFirstSetup,
|
||||
),
|
||||
componentFactory = updateAccessCodeComponentFactory,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
}
|
||||
|
|
@ -75,7 +75,6 @@ internal class CreateWalletBackupModel @Inject constructor(
|
|||
router.replaceCurrent(
|
||||
route = AppRoute.UpdateAccessCode(
|
||||
userWalletId = params.userWalletId,
|
||||
isFirstSetup = true,
|
||||
),
|
||||
)
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -365,7 +365,6 @@ internal class WalletSettingsModel @Inject constructor(
|
|||
router.push(
|
||||
route = AppRoute.UpdateAccessCode(
|
||||
userWalletId = params.userWalletId,
|
||||
isFirstSetup = !authorizationRequired,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue