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}

);