Commit 58dede47 authored by Yoon, Daeki's avatar Yoon, Daeki 😅
Browse files

테스트를 위해서 설문조사 여부 localStorage에서 sessionStorage로 변경

parent 0d4d491e
......@@ -32,7 +32,7 @@ export const AnswerSurveyForm = () => {
ansSurvey();
}, [surveyId]);
const isSurvey = localStorage.getItem(`survey_${surveyId}`);
const isSurvey = sessionStorage.getItem(`survey_${surveyId}`);
if (isSurvey) {
console.log("object", isSurvey);
......@@ -88,7 +88,7 @@ export const AnswerSurveyForm = () => {
});
const newAnswer: AnswerType = await answerApi.saveAnswers(formData);
console.log(newAnswer);
localStorage.setItem(`survey_${surveyId}`, surveyId ?? "");
sessionStorage.setItem(`survey_${surveyId}`, surveyId ?? "");
navigate("/survey/complete");
setSuccess(true);
......
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