fix: show correct "Last modified date" for note (#742)
Co-authored-by: Aman Harwara <amanharwara@protonmail.com>
This commit is contained in:
@@ -85,8 +85,8 @@ const NoteAttributes: FunctionComponent<{ note: SNNote }> = ({ note }) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const dateLastModified = useMemo(
|
const dateLastModified = useMemo(
|
||||||
() => formatDate(note.serverUpdatedAt),
|
() => formatDate(note.userModifiedDate),
|
||||||
[note.serverUpdatedAt]
|
[note.userModifiedDate]
|
||||||
);
|
);
|
||||||
|
|
||||||
const dateCreated = useMemo(
|
const dateCreated = useMemo(
|
||||||
|
|||||||
Reference in New Issue
Block a user