Skip to content

Commit

Permalink
Merge pull request #453 from SejongPeer/JunYoung
Browse files Browse the repository at this point in the history
버그 수정
  • Loading branch information
JunYoungKr authored Sep 5, 2024
2 parents 246e1bf + 712b54c commit d0ec207
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/pages/login/signIn/SignIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const SignIn = () => {

return (
<div className={style.entire_Container}>
<SubHeader text="로그인" customBackLink="/login" />
<SubHeader text="로그인" customBackLink="/main" />
<div className={style.container}>
<SignInBox inputID={inputID} name="아이디" />
<SignInBox inputPwd={inputPwd} name="비밀번호" id="pwd" />
Expand Down
15 changes: 6 additions & 9 deletions src/pages/main/mainPage/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const BuddyHandler = async (navigate, setBuddyCount) => {
}
);
const data = await response.json();
console.log(data)
console.log(data);

if (data.data !== null) {
setBuddyCount(data.data.matchingCompletedCount);
Expand All @@ -36,8 +36,6 @@ export const BuddyHandler = async (navigate, setBuddyCount) => {
setBuddyCount(0);
navigate('/buddy/start1');
}


} catch (error) {
toast.error('에러가 발생했습니다.');
console.log(error.message);
Expand Down Expand Up @@ -85,7 +83,7 @@ export const HonbobHandler = async navigate => {
const accessToken = localStorage.getItem('accessToken');

if (refreshToken === null || accessToken === null) {
toast.info('로그인 후 이용 가능한 서비스입니다!');
toast.error('로그인 후 이용 가능한 서비스입니다!');
navigate('/login');
} else {
try {
Expand All @@ -105,7 +103,7 @@ export const HonbobHandler = async navigate => {
}

const data = await response.json();
console.log(data)
console.log(data);

if (data.data) {
switch (data.data.status) {
Expand All @@ -125,10 +123,9 @@ export const HonbobHandler = async navigate => {
default:
break;
}
} else {
navigate('/honbob/start1')
}

} else {
navigate('/honbob/start1');
}
} catch (error) {
console.error('에러 체크:', error);
toast.error('매칭 체크 실패!');
Expand Down

0 comments on commit d0ec207

Please sign in to comment.