Skip to content

Commit

Permalink
Fix error for not showing new DiaryItem
Browse files Browse the repository at this point in the history
  • Loading branch information
sharonnkanng committed Apr 15, 2024
1 parent 66a94b8 commit 37f8733
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function App() {
type: "CREATE",
data: {
id: dataId.current,
date: new Date(`${date} 00:00:00`).getTime(),
date,
content,
emotion,
},
Expand All @@ -101,7 +101,7 @@ function App() {
targetID: targetId,
});
};

const onEdit = (targetId: number, date: number, content: string, emotion: number) => {
dispatch({
type: "EDIT",
Expand Down

0 comments on commit 37f8733

Please sign in to comment.