Skip to content

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

mobile: clear password error when switching locked notes

kashaf-ansari-dev0cb527f97b53
diff --git a/packages/editor-mobile/src/components/editor.tsx b/packages/editor-mobile/src/components/editor.tsx
index 2bcb73829..4601eba21 100644
--- a/packages/editor-mobile/src/components/editor.tsx
+++ b/packages/editor-mobile/src/components/editor.tsx
@@ -85,6 +85,9 @@ const Tiptap = ({
undo,
redo
};
+ useEffect(() => {
+ setPasswordError(null);
+ }, [tab.session?.noteId]);
logger("info", tabRef.current.id, "rendering");