Skip to content

Commit

Permalink
Merge pull request #79 from SUIN-BUNDANG-LINE/develop
Browse files Browse the repository at this point in the history
HOTFIX: 개별 응답, 초안 생성 부분 오류 수정
  • Loading branch information
JeongHunHui authored Oct 25, 2024
2 parents eca6057 + 5506a7c commit 0197095
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/management/[id]/tab2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function Tab2({
setCurrentParticipantIndex(0);
setInputIndex('1');
}
} else {
} else if (currentParticipantIndex === 0) {
setCurrentParticipantIndex(0);
setInputIndex('1');
}
Expand Down
5 changes: 3 additions & 2 deletions src/components/workbench/ai/draft/provide-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 0197095

Please sign in to comment.