From 632f0f544eeb8f4e6fad5ff990853ba3705f62b7 Mon Sep 17 00:00:00 2001 From: somin2352 Date: Fri, 22 Aug 2025 13:06:42 +0900 Subject: [PATCH] =?UTF-8?q?bigFix:=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=ED=82=A4=EC=9B=8C=EB=93=9C=20=EA=B4=80=EB=A0=A8=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/KeywordCard.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/components/KeywordCard.tsx b/src/components/KeywordCard.tsx index 1fd235b..5ba4e1a 100644 --- a/src/components/KeywordCard.tsx +++ b/src/components/KeywordCard.tsx @@ -4,21 +4,18 @@ interface KeywordCardProps { text?: string; } -export default function KeywordCard({ - question, - keyword = '', - text = '', -}: KeywordCardProps) { - - const finalKeyword = keyword.trim() === '' ? '아직 등록된 키워드가 없어요' : keyword; - const finalText = text.trim() === '' ? '등록된 설명이 없어요' : text; +export default function KeywordCard({ question, keyword = '', text = '' }: KeywordCardProps) { + const finalKeyword = keyword?.trim() === '' ? '아직 등록된 키워드가 없어요' : keyword; + const finalText = text?.trim() === '' ? '등록된 설명이 없어요' : text; return (

{question}

-

# {finalKeyword}

+

+ # {finalKeyword} +

{finalText}

);