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
web: remove app lock on first unlock if not allowed on user plan
Abdullah Atta80f66ab0ba46
diff --git a/apps/web/src/views/app-lock.tsx b/apps/web/src/views/app-lock.tsxindex d154958da..b3fe5ba23 100644--- a/apps/web/src/views/app-lock.tsx+++ b/apps/web/src/views/app-lock.tsx@@ -24,7 +24,7 @@ import {useRef,useState} from "react";-import { usePromise } from "@notesnook/common";+import { isFeatureAvailable, usePromise } from "@notesnook/common";// import { KeyChain } from "../interfaces/key-store";import { Button, Flex, Text } from "@theme-ui/components";import { Loading, Lock } from "../components/icons";@@ -69,7 +69,12 @@ export default function AppLock(props: PropsWithChildren<unknown>) {await useKeyStore.getState()- .unlock({ ...credential, password })+ .unlock(+ { ...credential, password },+ {+ permanent: !(await isFeatureAvailable("appLock")).isAllowed+ }+ ).catch((e) => {setError(typeof e === "string"