Skip to content

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

mobile: fix ts errors

Ammar Ahmed8cc86284eea8
diff --git a/apps/mobile/app/components/sheets/publish-note/index.tsx b/apps/mobile/app/components/sheets/publish-note/index.tsx
index 433e61bfe..fab6d28e9 100644
--- a/apps/mobile/app/components/sheets/publish-note/index.tsx
+++ b/apps/mobile/app/components/sheets/publish-note/index.tsx
@@ -382,7 +382,8 @@ const PublishNoteSheet = ({
>
<Paragraph size={AppFontSize.sm}>{strings.views()}</Paragraph>
<Paragraph>
- {monographData?.result?.metadata?.totalViews || 0}
+ {monographData?.result?.metadata?.analytics?.totalViews ||
+ 0}
</Paragraph>
</View>
</View>
@@ -455,4 +456,4 @@ PublishNoteSheet.present = (note: Note) => {
});
};
-export default PublishNoteSheet;
\ No newline at end of file
+export default PublishNoteSheet;