Skip to content

Commit

Permalink
Merge pull request #83 from Tea-Bliss/feature/#61_마이페이지_리뷰
Browse files Browse the repository at this point in the history
[fix] survey 페이지 쿼리 수정
  • Loading branch information
Jin-Chanyong authored Jun 24, 2024
2 parents 97b1c47 + eddc941 commit 0c1cb65
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 0c1cb65

Please sign in to comment.