Showing
1 changed file
with
4 additions
and
6 deletions
... | @@ -86,12 +86,11 @@ const ManagerMenuContainer = (props : ManagerMenuProps) => { | ... | @@ -86,12 +86,11 @@ const ManagerMenuContainer = (props : ManagerMenuProps) => { |
86 | await managerApi.acceptDoctorRegReq(token, { | 86 | await managerApi.acceptDoctorRegReq(token, { |
87 | doctorId : doctorDetail.doctorId, | 87 | doctorId : doctorDetail.doctorId, |
88 | validateDoctorLicense, | 88 | validateDoctorLicense, |
89 | - }) | 89 | + }).then((res : any) => { |
90 | - .then((res : any) => { | ||
91 | if(res.statusText === 'OK') { | 90 | if(res.statusText === 'OK') { |
92 | Alert.onSuccess('회원 등록이 완료되었습니다.', fetchData); | 91 | Alert.onSuccess('회원 등록이 완료되었습니다.', fetchData); |
93 | } | 92 | } |
94 | - }) | 93 | + }); |
95 | } catch(e : any) { | 94 | } catch(e : any) { |
96 | Alert.onError(e.response.data.error, () => setModalUp(false)); | 95 | Alert.onError(e.response.data.error, () => setModalUp(false)); |
97 | } | 96 | } |
... | @@ -106,12 +105,11 @@ const ManagerMenuContainer = (props : ManagerMenuProps) => { | ... | @@ -106,12 +105,11 @@ const ManagerMenuContainer = (props : ManagerMenuProps) => { |
106 | try { | 105 | try { |
107 | await managerApi.rejectDoctorRegReq(token, { | 106 | await managerApi.rejectDoctorRegReq(token, { |
108 | doctorId : doctorDetail.doctorId, | 107 | doctorId : doctorDetail.doctorId, |
109 | - }) | 108 | + }).then((res : any) => { |
110 | - .then((res : any) => { | ||
111 | if(res.statusText === 'OK') { | 109 | if(res.statusText === 'OK') { |
112 | Alert.onSuccess('회원 등록이 취소되었습니다.', fetchData); | 110 | Alert.onSuccess('회원 등록이 취소되었습니다.', fetchData); |
113 | } | 111 | } |
114 | - }) | 112 | + }); |
115 | } catch(e : any) { | 113 | } catch(e : any) { |
116 | Alert.onError(e.response.data.error, () => setModalUp(false)); | 114 | Alert.onError(e.response.data.error, () => setModalUp(false)); |
117 | } | 115 | } | ... | ... |
-
Please register or login to post a comment