Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: create vault dialog showing old& new password fields

thecodrr134df61ee147
diff --git a/apps/web/src/components/dialogs/password-dialog.js b/apps/web/src/components/dialogs/password-dialog.js
index 9ceee410d..af3b65412 100644
--- a/apps/web/src/components/dialogs/password-dialog.js
+++ b/apps/web/src/components/dialogs/password-dialog.js
@@ -8,11 +8,9 @@ function PasswordDialog(props) {
const { type } = props;
const [error, setError] = useState();
const [isLoading, setIsLoading] = useState(false);
-
- const isChangePasswordDialog = useMemo(
- () => type === "change_password" || "change_account_password",
- [type]
- );
+ const isChangePasswordDialog = useMemo(() => {
+ return type === "change_password" || type === "change_account_password";
+ }, [type]);
const submit = useCallback(
async (data) => {
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index c750951d2..906ef0aef 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -8957,21 +8957,9 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559"
integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==
-notes-core@../notes-core:
- version "5.1.0"
- dependencies:
- fast-sort "^2.0.1"
- fuzzysearch "^1.0.3"
- jshashes "^1.0.8"
- no-internet "^1.5.2"
- qclone "^1.0.4"
- quill-delta-to-html "^0.12.0"
- quill-delta-to-markdown "https://github.com/streetwriters/quill-delta-to-markdown"
- transfun "^1.0.2"
-
"notes-core@git+ssh://[email protected]:streetwriters/notesnook-core.git":
version "5.1.0"
- resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#98d70c891dee3d30616cb87752b7298240b1cf6d"
+ resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#9abccbc225808b435df55910b9e54f21a695ae6b"
dependencies:
fast-sort "^2.0.1"
fuzzysearch "^1.0.3"