We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 813f140 commit 8ea45b6Copy full SHA for 8ea45b6
pages/boards/[id].tsx
@@ -72,7 +72,6 @@ function Detail() {
72
id: +id,
73
content: newComment,
74
});
75
- console.log(response);
76
setComments((prev) => ({
77
...prev,
78
list: [response, ...prev.list],
utils/formatDate.ts
@@ -21,7 +21,9 @@ const calculateGapTime = (date: string) => {
21
} else if (differenceInHour > 0) {
22
return differenceInHour + "시간 전";
23
} else {
24
- return differenceInMinutes > 0 ? differenceInMinutes : 0 + "분 전";
+ return differenceInMinutes > 0
25
+ ? differenceInMinutes + "분 전"
26
+ : 0 + "분 전";
27
}
28
};
29
0 commit comments