Updated on 2026-08-14

This commit is contained in:
Tangem 2022-12-11 10:26:15 +03:00
parent 351671604a
commit 51ed623916
11 changed files with 48 additions and 56 deletions

View file

@ -82,7 +82,7 @@ internal class SaveWalletMiddleware {
val isFirstSavedWallet = !userWalletsListManager.hasSavedUserWallets
saveAccessCodeIfNeeded(state.backupInfo?.accessCode, userWallet.cardsInWallet)
.flatMap { userWalletsListManager.save(userWallet) }
.flatMap { userWalletsListManager.save(userWallet, canOverride = true) }
.doOnFailure { error ->
store.dispatchOnMain(SaveWalletAction.Save.Error(error))
}
@ -109,7 +109,7 @@ internal class SaveWalletMiddleware {
}
private fun saveWalletWasShown() {
preferencesStorage.shouldShowSaveWallet = false
preferencesStorage.shouldShowSaveUserWalletScreen = false
}
private suspend fun saveAccessCodeIfNeeded(