mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
show last synced correctly
This commit is contained in:
@@ -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'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user