Updated on 2026-08-14
This commit is contained in:
parent
3f6ca7f9e8
commit
cb9612ec4e
3 changed files with 15 additions and 9 deletions
|
|
@ -277,6 +277,7 @@ internal class BiometricUserWalletsListManager(
|
||||||
|
|
||||||
prevState.copy(
|
prevState.copy(
|
||||||
userWallets = newUserWallets,
|
userWallets = newUserWallets,
|
||||||
|
encryptionKeys = encryptionKeys,
|
||||||
isLocked = newUserWallets.any(UserWallet::isLocked),
|
isLocked = newUserWallets.any(UserWallet::isLocked),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -11,20 +11,20 @@ internal sealed interface SaveWalletAction : Action {
|
||||||
val backupCardsIds: Set<String>?,
|
val backupCardsIds: Set<String>?,
|
||||||
) : SaveWalletAction
|
) : SaveWalletAction
|
||||||
|
|
||||||
object Save : SaveWalletAction {
|
data object Save : SaveWalletAction {
|
||||||
object Success : SaveWalletAction
|
data object Success : SaveWalletAction
|
||||||
data class Error(val error: TangemError) : SaveWalletAction
|
data class Error(val error: TangemError) : SaveWalletAction
|
||||||
}
|
}
|
||||||
|
|
||||||
object AllowToUseBiometrics : SaveWalletAction
|
data object AllowToUseBiometrics : SaveWalletAction
|
||||||
|
|
||||||
object Dismiss : SaveWalletAction
|
data object Dismiss : SaveWalletAction
|
||||||
|
|
||||||
object CloseError : SaveWalletAction
|
data object CloseError : SaveWalletAction
|
||||||
object EnrollBiometrics : SaveWalletAction {
|
data object EnrollBiometrics : SaveWalletAction {
|
||||||
object Enroll : SaveWalletAction
|
data object Enroll : SaveWalletAction
|
||||||
object Cancel : SaveWalletAction
|
data object Cancel : SaveWalletAction
|
||||||
}
|
}
|
||||||
|
|
||||||
object SaveWalletWasShown : SaveWalletAction
|
data object SaveWalletWasShown : SaveWalletAction
|
||||||
}
|
}
|
||||||
|
|
@ -147,6 +147,11 @@ internal class SaveWalletMiddleware {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun allowToUseBiometrics(state: SaveWalletState) {
|
private fun allowToUseBiometrics(state: SaveWalletState) {
|
||||||
|
if (tangemSdkManager.needEnrollBiometrics) {
|
||||||
|
store.dispatchOnMain(SaveWalletAction.EnrollBiometrics)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
val scanResponse = state.backupInfo?.scanResponse
|
val scanResponse = state.backupInfo?.scanResponse
|
||||||
?: store.state.globalState.scanResponse
|
?: store.state.globalState.scanResponse
|
||||||
?: return
|
?: return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue