File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,11 +251,12 @@ export default function Recruit() {
251251 const handlePhoneCheck = async ( ) => {
252252 const candidate = formData . phoneNumber . trim ( )
253253 if ( ! candidate || ! isPhoneNumberFormatValid ( candidate ) ) return
254- setPhoneCheckState ( { status : 'checking' , checkedValue : candidate } )
254+ const digits = toPhoneDigits ( candidate )
255+ setPhoneCheckState ( { status : 'checking' , checkedValue : digits } )
255256 try {
256257 const response = await axios . get (
257258 `${ process . env . NEXT_PUBLIC_BASE_API_URL } /recruit/member/check/phone-number` ,
258- { params : { phoneNumber : candidate } }
259+ { params : { phoneNumber : digits } }
259260 )
260261 const isExists = response . data ?. data ?. isExists
261262 if ( isExists ) {
Original file line number Diff line number Diff line change @@ -211,10 +211,11 @@ export default function SignupPage() {
211211 const candidate = phoneNumber . trim ( )
212212 if ( ! candidate || ! isPhoneNumberFormatValid ( candidate ) ) return
213213
214- setPhoneCheckState ( { status : 'checking' , checkedValue : candidate } )
214+ const digits = toPhoneDigits ( candidate )
215+ setPhoneCheckState ( { status : 'checking' , checkedValue : digits } )
215216
216217 try {
217- const response = await checkPhoneNumberDuplicated ( candidate )
218+ const response = await checkPhoneNumberDuplicated ( digits )
218219 const data = unwrapApiResponse < DuplicateCheckResponseBody > ( response . data )
219220 if ( data ?. isExists ) {
220221 setPhoneCheckState ( {
You can’t perform that action at this time.
0 commit comments