Skip to content

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

fix error

ammarahm-ed26cbedc0209f
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.js
index 5d03c531c..db7a68ed8 100644
--- a/apps/mobile/src/components/ActionSheetComponent/index.js
+++ b/apps/mobile/src/components/ActionSheetComponent/index.js
@@ -505,7 +505,7 @@ export const ActionSheetComponent = ({
Keyboard.dismiss();
}}
/>
- {!note.id && !note.dateCreated ? (
+ {!note || !note.id ? (
<Paragraph style={{marginVertical: 10, alignSelf: 'center'}}>
Start writing to save your note.
</Paragraph>
@@ -516,7 +516,7 @@ export const ActionSheetComponent = ({
alignItems: 'center',
marginVertical: 10,
}}>
- <Heading size={SIZE.md}>{note.title.replace('\n', '')}</Heading>
+ <Heading size={SIZE.md}>{note?.title.replace('\n', '')}</Heading>
<Paragraph
numberOfLines={2}