Skip to content

Commit

Permalink
Merge pull request #104 from Q-CARD/chore/#101-check-project-function
Browse files Browse the repository at this point in the history
chore: ํ”„๋กœ์ ํŠธ ๊ธฐ๋Šฅ ์ ๊ฒ€ (draft)
  • Loading branch information
hyosin-Jang authored Nov 20, 2023
2 parents 761f589 + 074c73e commit 3a0344a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/category/question/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ export default function CategoryQuestionPage({
break;
// ๋“ฑ๋ก๋œ ๋‹ต๋ณ€์ด ์žˆ๋Š” ๊ฒฝ์šฐ
case 'put':
data = await putAnswer(answerDetail[0].answerId, answer);
data = await putAnswer(answerDetail.answerId, answer);
break;
}
return data;
} catch (e) {}
};

const submitAnswer = ({ answer }: any) => {
const submitAnswer = async ({ answer }: any) => {
const method = answerDetail?.content?.length > 0 ? 'put' : 'post';
sendAnswer(answer, method);
await sendAnswer(answer, method);

router.push(`/category/result/${params.id}`);
};
Expand Down
2 changes: 1 addition & 1 deletion src/app/interview/followup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function InterviewFollowupPage() {
{questionCount}. ๊ผฌ๋ฆฌ ์งˆ๋ฌธ
</span>
</div>
<form onSubmit={handleSubmit(submitAnswer)}>
<form onSubmit={handleSubmit(submitAnswer)} className="w-full">
<div className="flex flex-col bg-white items-center rounded-[1rem] px-[4.9rem] py-[4.9rem] gap-[3.6rem] self-stretch">
<h1 className="text-heading3 text-grey-5 break-keep">
{questionList?.question_model?.title}
Expand Down

0 comments on commit 3a0344a

Please sign in to comment.