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
mobile: fix applock toggles working without verification
Ammar Ahmedd59219e62b00
diff --git a/apps/mobile/app/screens/settings/section-item.tsx b/apps/mobile/app/screens/settings/section-item.tsxindex 03bebd495..63575252e 100644--- a/apps/mobile/app/screens/settings/section-item.tsx+++ b/apps/mobile/app/screens/settings/section-item.tsx@@ -50,6 +50,7 @@ const _SectionItem = ({ item }: { item: SettingSection }) => {const onChangeSettings = async () => {if (loading) return;+ if (item.onVerify && !(await item.onVerify())) return;if (item.modifer) {setLoading(true);await item.modifer(item.property || current);@@ -115,7 +116,6 @@ const _SectionItem = ({ item }: { item: SettingSection }) => {break;case "switch":{- if (item.onVerify && !(await item.onVerify())) return;onChangeSettings();}break;