Commit 53f4f31e authored by Yoon, Daeki's avatar Yoon, Daeki 😅
Browse files

guestId 정정

parent 4f3d7a8c
...@@ -57,7 +57,7 @@ export const AnswerSurvey = () => { ...@@ -57,7 +57,7 @@ export const AnswerSurvey = () => {
otherAnswers.map((answer) => ({ otherAnswers.map((answer) => ({
questionId: answer.question._id!, questionId: answer.question._id!,
surveyId: survey._id!, surveyId: survey._id!,
questId: "guest", guestId: "guest",
content: answer.content, content: answer.content,
})) }))
); );
...@@ -68,11 +68,6 @@ export const AnswerSurvey = () => { ...@@ -68,11 +68,6 @@ export const AnswerSurvey = () => {
); );
console.log("result:", result); console.log("result:", result);
// const newAnswer: IAnswer = await answerApi.saveAnswers(formData);
// console.log(newAnswer);
// sessionStorage.setItem(`survey_${surveyId}`, surveyId ?? "");
// navigate("/survey/complete", { replace: false });
} catch (error) { } catch (error) {
catchErrors(error, setError); catchErrors(error, setError);
} finally { } finally {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment