Skip to content

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

show last synced correctly

ammarahm-ed6199be396343
diff --git a/apps/mobile/src/components/Menu/UserSection.js b/apps/mobile/src/components/Menu/UserSection.js
index 3951061a3..07d1d793a 100644
--- a/apps/mobile/src/components/Menu/UserSection.js
+++ b/apps/mobile/src/components/Menu/UserSection.js
@@ -23,6 +23,7 @@ export const UserSection = ({noTextMode}) => {
const {colors, syncing, user} = state;
useEffect(() => {
+ console.log(user);
dispatch({type: ACTIONS.TAGS});
}, []);
@@ -114,8 +115,8 @@ export const UserSection = ({noTextMode}) => {
}}>
{syncing ? 'Syncing ' : 'Synced '}
{!syncing ? (
- user.lastSynced && user.lastSynced !== 0 ? (
- <TimeSince time={user.lastSynced} />
+ user?.notesnook?.lastSynced !== 0 ? (
+ <TimeSince time={user.notesnook.lastSynced} />
) : (
'never'
)
@@ -140,7 +141,7 @@ export const UserSection = ({noTextMode}) => {
) : (
<PressableButton
onPress={() => {
- eSendEvent(eOpenLoginDialog);
+ eSendEvent(eOpenLoginDialog);
}}
color={colors.shade}
selectedColor={colors.accent}