fix: show correct "Last modified date" for note (#742)

Co-authored-by: Aman Harwara <amanharwara@protonmail.com>
This commit is contained in:
Vardan Hakobyan
2021-11-16 18:19:53 +04:00
committed by GitHub
parent b2877a5435
commit 0193eea1f5

View File

@@ -85,8 +85,8 @@ const NoteAttributes: FunctionComponent<{ note: SNNote }> = ({ note }) => {
);
const dateLastModified = useMemo(
() => formatDate(note.serverUpdatedAt),
[note.serverUpdatedAt]
() => formatDate(note.userModifiedDate),
[note.userModifiedDate]
);
const dateCreated = useMemo(