From f6b52fb926714cd8c93539d4d5d9b995ec2aaf60 Mon Sep 17 00:00:00 2001 From: jinsil Date: Thu, 24 Oct 2024 01:43:02 +0900 Subject: [PATCH 01/27] =?UTF-8?q?feat:=20RoomInfoCard=EC=97=90=20displayed?= =?UTF-8?q?Keywords=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/roomDetailPage/roomInfoCard/RoomInfoCard.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/roomDetailPage/roomInfoCard/RoomInfoCard.tsx b/frontend/src/components/roomDetailPage/roomInfoCard/RoomInfoCard.tsx index bf126475a..b25d38c57 100644 --- a/frontend/src/components/roomDetailPage/roomInfoCard/RoomInfoCard.tsx +++ b/frontend/src/components/roomDetailPage/roomInfoCard/RoomInfoCard.tsx @@ -9,6 +9,8 @@ import { theme } from "@/styles/theme"; import { displayLeftTime, formatDateTimeString, formatDday } from "@/utils/dateFormatter"; const RoomInfoCard = ({ roomInfo }: { roomInfo: RoomInfo }) => { + const displayedKeywords = roomInfo.keywords.filter((keyword) => keyword !== ""); + return ( @@ -34,10 +36,10 @@ const RoomInfoCard = ({ roomInfo }: { roomInfo: RoomInfo }) => { - {roomInfo.keywords.length === 1 ? ( + {displayedKeywords.length === 0 ? ( 지정된 키워드 없음 ) : ( - roomInfo.keywords.map((keyword) => ( + displayedKeywords.map((keyword) => (