Skip to content

Commit

Permalink
refactor: 1분 이전에 작성된 글은 '방금 전'으로 표시되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
khakhiD committed Apr 10, 2024
1 parent 05c8a04 commit 5bacd7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/getTimeDelta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const getTimeDelta = (postedDate: string) => {

switch (true) {
case seconds < 60:
result = `${seconds} 전`;
result = `방금 전`;
break;
case minutes < 60:
result = `${minutes}분 전`;
Expand Down

0 comments on commit 5bacd7f

Please sign in to comment.