diff --git a/apps/web/src/component/retrospectCreate/customTemplate/AddQuestionsBottomSheet.tsx b/apps/web/src/component/retrospectCreate/customTemplate/AddQuestionsBottomSheet.tsx index 183771e3..777322ca 100644 --- a/apps/web/src/component/retrospectCreate/customTemplate/AddQuestionsBottomSheet.tsx +++ b/apps/web/src/component/retrospectCreate/customTemplate/AddQuestionsBottomSheet.tsx @@ -101,7 +101,17 @@ export function AddQuestionsBottomSheet({ onClose, handleAddQuestions, maxCount overflow: auto; `} > - + { + if (!isChecked(value) && selectedValues.length >= maxCount) { + toast.error("추가 가능한 질문 개수를 초과했어요"); + return; + } + toggle(value); + }} + gap={4} + > {RECOMMENDED_QUESTIONS[curCategoryTab].map((question, index) => { return ( diff --git a/apps/web/src/component/retrospectCreate/customTemplate/EditQuestions.tsx b/apps/web/src/component/retrospectCreate/customTemplate/EditQuestions.tsx index 1e3043b8..14c5b5cb 100644 --- a/apps/web/src/component/retrospectCreate/customTemplate/EditQuestions.tsx +++ b/apps/web/src/component/retrospectCreate/customTemplate/EditQuestions.tsx @@ -78,6 +78,10 @@ export function EditQuestions({ goNext, goPrev }: EditQuestionsProps) { }; const onNext = () => { + if (newQuestions.length === 0) { + toast.error("최소 1개 이상의 질문으로 구성해주세요"); + return; + } saveData(); goNext(); };