fix(ui): notes timestamp whil creating

This commit is contained in:
Shekar Siri 2023-10-28 12:25:06 +02:00
parent 2c8477d403
commit 50f706db13

View file

@ -89,7 +89,7 @@ function CreateNote({
const note: WriteNote = {
message: text,
tag,
timestamp: useTimestamp ? (isEdit ? editNote.timestamp : time) : -1,
timestamp: useTimestamp ? Math.floor((isEdit ? editNote.timestamp : time)) : -1,
isPublic,
};
const onSuccess = (noteId: string) => {