Skip to content

Commit

Permalink
fix: fixed double invocation of callbacks on iOS module
Browse files Browse the repository at this point in the history
  • Loading branch information
desusai7 committed Jul 30, 2024
1 parent 4cd4ec5 commit a880f2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ios/NativeBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ public class NativeBridge: NSObject {
}
self.credentialsManager.enableBiometrics(withTitle: title, cancelTitle: localAuthenticationOptions["cancelTitle"] as? String, fallbackTitle: localAuthenticationOptions["fallbackTitle"] as? String, evaluationPolicy: evaluationPolicy)
resolve(true)
return
} else {
reject(NativeBridge.biometricsAuthenticationErrorCode, "Missing mandatory property title in LocalAuthenticationOptions, hence biometrics authentication cannot be enabled", nil)
return
}
}
resolve(true)
Expand Down

0 comments on commit a880f2b

Please sign in to comment.