Skip to content

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

mobile: removed redundant isLocked check for password field in publish form

kashaf-ansari-dev886e75771507
diff --git a/apps/mobile/app/components/sheets/publish-note/index.tsx b/apps/mobile/app/components/sheets/publish-note/index.tsx
index ce2f251cd..22f2dbfae 100644
--- a/apps/mobile/app/components/sheets/publish-note/index.tsx
+++ b/apps/mobile/app/components/sheets/publish-note/index.tsx
@@ -317,11 +317,9 @@ const PublishNoteSheet = ({
blurOnSubmit
secureTextEntry
placeholder={strings.enterPassword()}
- validators={
- isLocked
- ? [validators.required(strings.passwordRequired())]
- : []
- }
+ validators={[
+ validators.required(strings.passwordRequired())
+ ]}
containerStyle={{
marginTop: DefaultAppStyles.GAP_VERTICAL
}}