Skip to content

Commit

Permalink
fix: survey 페이지 쿼리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin-Chanyong committed Jun 24, 2024
1 parent 4fea70b commit eddc941
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
},
});
};
Expand Down

0 comments on commit eddc941

Please sign in to comment.