Skip to content

Commit

Permalink
🐞 BugFix(#191): OpinionsModal에서 제목 설정 로직 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
rhehfl committed Feb 28, 2025
1 parent b92d2df commit b7c524d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/features/user/ui/OpinionsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,18 @@ export default function OpinionsModal({
return;
}
}
let title = '';
if (selectedOption === '직접 입력') {
title = customTitle;
} else if (selectedOption === '퀴즈') {
title = quizInfo;
} else {
title = selectedOption;
}

createOpinions(
{
title: customTitle,
title,
content,
},
{
Expand All @@ -70,7 +79,6 @@ export default function OpinionsModal({
},
}
);
return;
};

return (
Expand Down

0 comments on commit b7c524d

Please sign in to comment.