diff --git a/service/src/components/modal/CommentModal.jsx b/service/src/components/modal/CommentModal.jsx index 02d2073..243a12e 100644 --- a/service/src/components/modal/CommentModal.jsx +++ b/service/src/components/modal/CommentModal.jsx @@ -22,7 +22,7 @@ function CommentModal({ >

{data.phoneNumber}

-
+
{likeCount}
diff --git a/service/src/components/modal/PhoneAuthModal.jsx b/service/src/components/modal/PhoneAuthModal.jsx index 02194e5..6dbef8a 100644 --- a/service/src/components/modal/PhoneAuthModal.jsx +++ b/service/src/components/modal/PhoneAuthModal.jsx @@ -21,12 +21,14 @@ function PhoneAuthModal({ setIsValid(e.target.value.length === 6); }; const handleAuth = async () => { - if (validateCode === '111111') { - try { - const response = await loginCode(inputPhone, validateCode); + try { + const response = await loginCode(inputPhone, validateCode); + if (response.code && response.code === 'CODE_INCORRECT') { + setAlertText('인증번호를 다시 확인해주세요!'); + setIsValid(false); + } else { localStorage.setItem('userInfo', response.accessToken); setUserInfo(response); - if (option === '자동차 아이템') { if (response.car) { setResultModalOpen('alreadyGetCar'); @@ -37,12 +39,9 @@ function PhoneAuthModal({ setResultModalOpen('comment'); } closeAuthModal(); - } catch (error) { - console.error('API 통신 실패:', error); } - } else { - setAlertText('인증번호를 다시 확인해주세요!'); - setIsValid(false); + } catch (error) { + console.error('API 통신 실패:', error); } }; const firstClickEvent = () => { diff --git a/service/src/pages/joinEvent/commentList/CommentDetail.jsx b/service/src/pages/joinEvent/commentList/CommentDetail.jsx index 8a538eb..d0376ae 100644 --- a/service/src/pages/joinEvent/commentList/CommentDetail.jsx +++ b/service/src/pages/joinEvent/commentList/CommentDetail.jsx @@ -86,7 +86,6 @@ function CommentDetail() { }, [userInfo]); if (loading) { - console.log('ddd'); return (
Loading