Skip to content

Commit

Permalink
refactor(member): 마이페이지 내역 UI 개선 (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwansikk committed Apr 7, 2024
1 parent f53b407 commit 39e59d2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ const MyHistorySection = ({ title, data }: MyHistorySectionProps) => {
* 나의 댓글
*/
if ('boardId' in item) {
const { id, boardId, boardCategory, content, createdAt } =
item as CommentItem;
const { id, boardId, boardCategory, content, createdAt } = item;
return (
<ListButton
key={id}
Expand All @@ -66,7 +65,7 @@ const MyHistorySection = ({ title, data }: MyHistorySectionProps) => {
<span>{bookTitle}</span>
</p>
<p className="text-clab-main-light">
{toYYMMDD(borrowedAt || '')}
{toYYMMDD(borrowedAt ?? '')}
</p>
</ListButton>
);
Expand Down

0 comments on commit 39e59d2

Please sign in to comment.