Skip to content

Commit

Permalink
fix: 가입시 role 받아오는 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
se0jinYoon committed Nov 4, 2024
1 parent bec606b commit a40cff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const Step번호입력 = () => {
setTimeLeft(TIME);
setData((prev) => ({
...prev,
phoneNumber: phoneNumber
phoneNumber: phoneNumber,
}));
},
onError: () => {
Expand Down Expand Up @@ -118,7 +118,6 @@ const Step번호입력 = () => {
if (pathname.includes('senior')) {
mutate.mutate(data, {
onSuccess: (res) => {
console.log(res.data.data);
navigate('/seniorProfile', {
state: {
seniorId: res.data.data.seniorId,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/onboarding/hooks/useJoinQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const useJoinQuery = () => {
const mutation = useMutation({
mutationFn: (requestBody: JoinPropType) => joinAxios(requestBody),
onSuccess: (data) => {
setRole(data.data.role);
setRole(data.data.data.userType);
},
onError: (error) => {
console.log('🔴 join patch Error: ', error);
Expand Down

0 comments on commit a40cff1

Please sign in to comment.