Skip to content

Commit

Permalink
(Team-Coverflow#329)chore: 불필요 콘솔 삭제 및 메세지 수정했습니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJayleee committed May 13, 2024
1 parent 71213dd commit d1adf79
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/components/global/token/tokenManagement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const TokenManagement = () => {
}
})
.catch((error) => {
console.error('토큰 요청 중 오류가 발생했습니다:', error);
console.error(error);
alert('로그인에 실패하였습니다. 다시 시도해주세요.');
navigate('/');
});
Expand Down
4 changes: 2 additions & 2 deletions src/components/global/utils/alertCountUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export const fetchUnreadNotificationsCount = async (dispatch) => {
// console.log(data.data.noReadElements);
dispatch(alertCount(data.data.noReadElements));
} else {
throw new Error('알림 카운트 변경 실패 ');
throw new Error('realtime-alert-error');
}
} catch (error) {
console.error('알림 카운트 가져오기 실패', error);
console.error(error);
}
};
2 changes: 1 addition & 1 deletion src/components/global/utils/eventApiUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const initializeSSE = (queryClient, dispatch) => {
let lastEventId = localStorage.getItem(LAST_EVENT_ID);

if (!accessToken) {
console.log('토큰이 없어서 연결을 시작할 수 없습니다.');
console.log('NO_TOKEN');
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/global/utils/reissueTokenUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const reissueTokens = async (queryClient, dispatch) => {
initializeSSE(queryClient);
}
} catch (error) {
console.error('토큰 재발급 오류, 다시 시도합니다.', error);
console.error('ERROR_REISSUE_TOKEN, RETRY', error);
setTimeout(() => reissueTokens(queryClient, dispatch), 5000);
}
};
2 changes: 1 addition & 1 deletion src/components/pages/loginPage/nicknamePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const NicknamePage = () => {
navigate('/');
showSuccessToast('환영합니다!');
} catch (error) {
console.error('데이터 전송 중 오류:', error);
console.error(error);
showErrorToast('데이터 전송에 실패했습니다.');
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/myPage/feedbackPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function FeedbackPage() {
}
}
} catch (error) {
console.log('피드백 등록 실패:', error);
console.log(error);
showErrorToast('피드백 등록 중 문제가 발생했습니다.');
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/components/pages/myPage/infoEditPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function InfoEditPage() {
setNickname(data.data.nickname);
dispatch(setRewardCount(data.data.fishShapedBun));
} catch (error) {
console.error('회원 정보 불러오기 실패:', error);
console.error(error);
}
};

Expand Down Expand Up @@ -114,7 +114,7 @@ function InfoEditPage() {
navigate('/mypage');
}
} catch (error) {
console.error('데이터 전송 중 오류:', error);
console.error(error);
showErrorToast('정보 수정 중 오류가 발생했습니다.');
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/notificationPage/notificationList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function NotificationList({
}
})
.catch((error) => {
console.error('데이터 불러오기 실패', error);
console.error(error);
});
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/contactSlider/contactSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function ContactSlider() {
setContactList(data.data.inquiries);
setTotalPage(data.data.totalPages);
} catch (error) {
console.error('문의 내역 불러오기 실패:', error);
console.error(error);
}
};

Expand Down
7 changes: 2 additions & 5 deletions src/components/ui/header/userInfoHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,11 @@ function UserInfoHeader() {
dispatch(setNickname(data.data.nickname));
// console.log('붕어빵 개수:', data.data.fishShapedBun);
} else {
console.error('유효하지 않은 데이터를 받았습니다.', data);
console.error(data);
}
})
.catch((error) => {
console.error(
'붕어빵 데이터를 가져오는 데 오류가 발생했습니다.',
error,
);
console.error(error);
});
}
}, [dispatch]);
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/question/answerContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function AnswersContainer() {

setAnswers(newAnswers);
} catch (error) {
console.error('답변 채택에 실패했습니다.', error);
console.error(error);
}
};

Expand Down

0 comments on commit d1adf79

Please sign in to comment.