diff --git a/features/biometry/impl/src/main/kotlin/com/tangem/features/biometry/impl/model/AskBiometryModel.kt b/features/biometry/impl/src/main/kotlin/com/tangem/features/biometry/impl/model/AskBiometryModel.kt index faf365c0f3..5acce0f6a4 100644 --- a/features/biometry/impl/src/main/kotlin/com/tangem/features/biometry/impl/model/AskBiometryModel.kt +++ b/features/biometry/impl/src/main/kotlin/com/tangem/features/biometry/impl/model/AskBiometryModel.kt @@ -135,13 +135,15 @@ internal class AskBiometryModel @Inject constructor( params.modelCallbacks.onAllowed() } - private fun setBiometryLockForAllWallets() { - modelScope.launch { - userWalletsListRepository.userWalletsSync().forEach { userWallet -> - userWalletsListRepository.setLock( - userWalletId = userWallet.walletId, - lockMethod = UserWalletsListRepository.LockMethod.Biometric, - changeUnsecured = false, + private suspend fun setBiometryLockForAllWallets() { + userWalletsListRepository.userWalletsSync().forEach { userWallet -> + userWalletsListRepository.setLock( + userWalletId = userWallet.walletId, + lockMethod = UserWalletsListRepository.LockMethod.Biometric, + changeUnsecured = false, + ).onLeft { + uiMessageSender.send( + SnackbarMessage(stringReference("Something went wrong. Please contact support: $it")), ) } }