diff --git a/src/app/management/[id]/tab2.tsx b/src/app/management/[id]/tab2.tsx index ad155ef..8a215a3 100644 --- a/src/app/management/[id]/tab2.tsx +++ b/src/app/management/[id]/tab2.tsx @@ -44,7 +44,7 @@ export default function Tab2({ setCurrentParticipantIndex(0); setInputIndex('1'); } - } else { + } else if (currentParticipantIndex === 0) { setCurrentParticipantIndex(0); setInputIndex('1'); } diff --git a/src/components/workbench/ai/draft/provide-data.tsx b/src/components/workbench/ai/draft/provide-data.tsx index 1d81762..af42ed8 100644 --- a/src/components/workbench/ai/draft/provide-data.tsx +++ b/src/components/workbench/ai/draft/provide-data.tsx @@ -54,8 +54,9 @@ export default function ProvideData({ setPhase(2); setSurvey(cin(data)); }, - onError: (error: Error) => { - showToast('error', `설문을 생성하지 못했습니다: ${(error.cause as ErrorCause).message}`); + onError: () => { + setElapsedTime(0); + showToast('error', '초안을 생성하지 못했습니다. 다시 한번 시도해주세요.'); }, surveyId, });