Skip to content

Commit

Permalink
[fix] Bug/typo
Browse files Browse the repository at this point in the history
  • Loading branch information
stackchain committed May 5, 2022
1 parent 25f2e08 commit 08a1d83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion legacy/crypto/walletManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,10 @@ class WalletManager {
this._wallet = wallet
this._id = walletMeta.id

const canBiometricsBeUsed = await canBiometricEncryptionBeEnabled()

const shouldDisableEasyConfirmation =
walletMeta.isEasyConfirmationEnabled && (!isSystemAuthEnabled || (await !canBiometricEncryptionBeEnabled()))
walletMeta.isEasyConfirmationEnabled && (!isSystemAuthEnabled || !canBiometricsBeUsed)
if (shouldDisableEasyConfirmation) {
wallet.isEasyConfirmationEnabled = false

Expand Down

0 comments on commit 08a1d83

Please sign in to comment.