mirror of
https://github.com/standardnotes/mobile.git
synced 2026-02-05 05:21:26 -05:00
fix: check return value of application.disableBiometrics()
This commit is contained in:
@@ -174,8 +174,9 @@ export const PasscodeSection = (props: Props) => {
|
||||
};
|
||||
|
||||
const disableBiometrics = useCallback(async () => {
|
||||
setHasBiometrics(false);
|
||||
await application?.disableBiometrics();
|
||||
if (await application?.disableBiometrics()) {
|
||||
setHasBiometrics(false);
|
||||
}
|
||||
}, [application]);
|
||||
|
||||
const disablePasscode = useCallback(async () => {
|
||||
|
||||
Reference in New Issue
Block a user