Skip to content

Commit

Permalink
refactor: 주관식 선택 문항에 대한 가이드라인 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ImxYJL committed Sep 4, 2024
1 parent ea2997a commit 792b3e2
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ const QnABox = ({ question }: QnABoxProps) => {
const multipleLGuideline = (() => {
const { optionGroup, questionType } = question;

if (question.required && questionType === 'TEXT') {
return `(최소 ${TEXT_ANSWER_LENGTH.min}자 ~ 최대 ${TEXT_ANSWER_LENGTH.max}자)`;
// NOTE: 객관식일 경우의 안내 문구 처리
if (questionType === 'TEXT') {
const guideline = question.required
? `(최소 ${TEXT_ANSWER_LENGTH.min}자 ~ 최대 ${TEXT_ANSWER_LENGTH.max}자)`
: `(최대 ${TEXT_ANSWER_LENGTH.max}자)`;
return guideline;
}

if (!optionGroup) return;
Expand Down

0 comments on commit 792b3e2

Please sign in to comment.