From eddc941d601e04ffc924530980d0321dee05a1b7 Mon Sep 17 00:00:00 2001 From: Jin-Chanyong Date: Tue, 25 Jun 2024 02:26:50 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20survey=20=ED=8E=98=EC=9D=B4=EC=A7=80=20?= =?UTF-8?q?=EC=BF=BC=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../page-layout/surveyLayout/components/SurveyForm/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/page-layout/surveyLayout/components/SurveyForm/index.tsx b/src/components/page-layout/surveyLayout/components/SurveyForm/index.tsx index a1de284..d5ca75d 100644 --- a/src/components/page-layout/surveyLayout/components/SurveyForm/index.tsx +++ b/src/components/page-layout/surveyLayout/components/SurveyForm/index.tsx @@ -63,8 +63,9 @@ export default function SurveyForm() { } mutate.mutate(formData, { - onSuccess: () => { - router.push('/recommend'); + onSuccess: (data) => { + const query = data.data.data; + router.push(`/recommend?data=${query}`); }, }); };