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;
|
const {colors, syncing, user} = state;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
console.log(user);
|
||||||
dispatch({type: ACTIONS.TAGS});
|
dispatch({type: ACTIONS.TAGS});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
@@ -114,8 +115,8 @@ export const UserSection = ({noTextMode}) => {
|
|||||||
}}>
|
}}>
|
||||||
{syncing ? 'Syncing ' : 'Synced '}
|
{syncing ? 'Syncing ' : 'Synced '}
|
||||||
{!syncing ? (
|
{!syncing ? (
|
||||||
user.lastSynced && user.lastSynced !== 0 ? (
|
user?.notesnook?.lastSynced !== 0 ? (
|
||||||
<TimeSince time={user.lastSynced} />
|
<TimeSince time={user.notesnook.lastSynced} />
|
||||||
) : (
|
) : (
|
||||||
'never'
|
'never'
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user