A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix fingerprint access button not working
ammarahm-ed6e3cf10a0eb3
diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.jsindex ce8c37f32..cb0953818 100644--- a/apps/mobile/src/components/VaultDialog/index.js+++ b/apps/mobile/src/components/VaultDialog/index.js@@ -150,7 +150,7 @@ export class VaultDialog extends Component {onPress = async () => {if (this.state.revokeFingerprintAccess) {await this._revokeFingerprintAccess();- close();+ this.close();return;}if (this.state.loading) return;@@ -223,7 +223,7 @@ export class VaultDialog extends Component {.catch((e) => {this._takeErrorAction(e);});- } else if (this.state.fingerprintEnroll) {+ } else if (this.state.fingerprintAccess) {this._enrollFingerprint(this.password);}};@@ -286,6 +286,9 @@ export class VaultDialog extends Component {authenticationPrompt: {cancel: null},accessible: Keychain.AUTHENTICATION_TYPE.DEVICE_PASSCODE_OR_BIOMETRICS,});+ eSendEvent('vaultUpdated');+ ToastEvent.show('Fingerprint access enabled!', 'success');+ this.close();} catch (e) {this._takeErrorAction(e);}@@ -350,10 +353,9 @@ export class VaultDialog extends Component {failOnCancel: false,message: m,});- } catch(e) {- console.log(e)+ } catch (e) {+ console.log(e);}-}_takeErrorAction(e) {