Updated on 2026-08-14

This commit is contained in:
Tangem 2023-10-23 16:09:14 +04:00
parent 6bbe8b6606
commit 0928055213
5 changed files with 15 additions and 7 deletions

View file

@ -16,6 +16,7 @@ import com.tangem.tap.domain.userWalletList.utils.toUserWallets
import com.tangem.tap.domain.userWalletList.utils.updateWith
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.*
import timber.log.Timber
@OptIn(ExperimentalCoroutinesApi::class)
internal class BiometricUserWalletsListManager(
@ -217,9 +218,8 @@ internal class BiometricUserWalletsListManager(
}
.map {
selectedUserWalletSync.guard {
throw UserWalletsListError.UnableToUnlockUserWallets(
cause = IllegalStateException("No user wallet selected"),
)
Timber.e("Unable to find selected user wallet")
throw UserWalletsListError.NoUserWalletSelected
}
}
}

View file

@ -38,7 +38,7 @@ internal class BiometricUserWalletsKeysRepository(
is TangemSdkError.AuthenticationPermanentLockout ->
UserWalletsListError.BiometricsAuthenticationLockout(isPermanent = true)
is TangemSdkError.KeystoreInvalidated ->
UserWalletsListError.EncryptionKeyInvalidated
UserWalletsListError.AllKeysInvalidated
is TangemSdkError.AuthenticationUnavailable ->
UserWalletsListError.BiometricsAuthenticationDisabled
else -> error