diff --git a/frontend/src/pages/LectureInfoPage/LectureInfoPage.jsx b/frontend/src/pages/LectureInfoPage/LectureInfoPage.jsx
index 1498a13..2350b8e 100644
--- a/frontend/src/pages/LectureInfoPage/LectureInfoPage.jsx
+++ b/frontend/src/pages/LectureInfoPage/LectureInfoPage.jsx
@@ -33,9 +33,7 @@ export default function LectureInfoPage() {
window.alert('강사가 수강신청 수락시 수업이 시작됩니다.');
navigate('/');
})
- .catch((err) => {
- console.log(err);
- });
+ .catch(() => {});
}
};
diff --git a/frontend/src/pages/MyInfoChangePage/MyInfoChangePage.jsx b/frontend/src/pages/MyInfoChangePage/MyInfoChangePage.jsx
index e81c225..864c014 100644
--- a/frontend/src/pages/MyInfoChangePage/MyInfoChangePage.jsx
+++ b/frontend/src/pages/MyInfoChangePage/MyInfoChangePage.jsx
@@ -16,8 +16,6 @@ export default function MyInfoChangePage() {
await updateInfo(username, useremail)
.then(() => navigate('/'))
.catch((err) => {
- console.log(err);
- console.log(err.response.data);
if (err.response.data === '이미 사용 중인 이메일입니다.') {
setUsingEmail(true);
}
diff --git a/frontend/src/pages/PasswordChangePage/PasswordChangePage.jsx b/frontend/src/pages/PasswordChangePage/PasswordChangePage.jsx
index 755caef..67a630c 100644
--- a/frontend/src/pages/PasswordChangePage/PasswordChangePage.jsx
+++ b/frontend/src/pages/PasswordChangePage/PasswordChangePage.jsx
@@ -9,14 +9,11 @@ export default function PasswordChangePage() {
const { updatePassword } = useAuth();
const handleSubmit = async (currentPw, newPw, newPwCheck) => {
await updatePassword(currentPw, newPw, newPwCheck)
- .then((res) => {
- console.log(res);
+ .then(() => {
navigate('/');
})
.catch((err) => {
- console.log(err.response.data);
if (err.response.data === 'Current password is incorrect') {
- console.log('현재 비밀번호 에러');
setPwError(true);
}
});
diff --git a/frontend/src/pages/PasswordResetAuthPage/PasswordResetAuthPage.jsx b/frontend/src/pages/PasswordResetAuthPage/PasswordResetAuthPage.jsx
index f4187ff..103f6d4 100644
--- a/frontend/src/pages/PasswordResetAuthPage/PasswordResetAuthPage.jsx
+++ b/frontend/src/pages/PasswordResetAuthPage/PasswordResetAuthPage.jsx
@@ -21,14 +21,11 @@ export default function PasswordResetPage() {
const handleSubmit = (e) => {
e.preventDefault();
setAuthError(false);
- console.log(authNumRef.current.value, email);
verify(authNumRef.current.value, email)
- .then((res) => {
- console.log(res);
+ .then(() => {
setSentAuthNum(true);
})
.catch((err) => {
- console.log(err);
if (err.message === 'Request failed with status code 404') {
setAuthError(true);
}
diff --git a/frontend/src/pages/PasswordResetPage/PasswordResetPage.jsx b/frontend/src/pages/PasswordResetPage/PasswordResetPage.jsx
index 51cd5a5..c969c09 100644
--- a/frontend/src/pages/PasswordResetPage/PasswordResetPage.jsx
+++ b/frontend/src/pages/PasswordResetPage/PasswordResetPage.jsx
@@ -1,5 +1,5 @@
import { AuthForm, InputBox } from '../../components/AuthForm';
-import { useRef, useState, useEffect } from 'react';
+import { useRef, useState } from 'react';
import styles from './PasswordResetPage.module.css';
import { Link } from 'react-router-dom';
import { usePasswordReset } from '../../hooks/api/usePasswordReset';
@@ -11,24 +11,14 @@ export default function PasswordResetPage() {
const { sendEmail } = usePasswordReset();
- useEffect(() => {
- if (emailSent) {
- console.log('Updated emailSent:', emailSent);
- }
- }, [emailSent]);
-
const handleSubmit = async (e) => {
e.preventDefault();
setNotFound(false);
await sendEmail(emailRef.current.value)
.then(() => {
- const email = emailRef.current.value;
- console.log(email);
- setEmailSent(email);
- console.log(emailSent);
+ setEmailSent(emailRef.current.value);
})
.catch((err) => {
- console.log(err);
if (err.message === 'Request failed with status code 404') {
setNotFound(true);
}
diff --git a/frontend/src/pages/QuestionListPage/QuestionListPage.jsx b/frontend/src/pages/QuestionListPage/QuestionListPage.jsx
index 583b10b..b81a1d8 100644
--- a/frontend/src/pages/QuestionListPage/QuestionListPage.jsx
+++ b/frontend/src/pages/QuestionListPage/QuestionListPage.jsx
@@ -10,7 +10,6 @@ export default function QuestionListPage() {
const questions = data?.data;
const userType = useBoundStore((state) => state.userType);
- console.log(questions);
return (
{
navigate('edit', { state: { initialValue: quizset } });
};
-
const handleDelete = async () => {
await quizsetDelete(quizsetId);
navigate('..');
};
+
return (
{
e.preventDefault();
@@ -42,10 +41,6 @@ export default function QuizsetEditPage() {
}
});
- formData.forEach((value, key) => {
- console.log(`FormData - Key: ${key}, Value:`, value);
- });
-
await quizsetEdit(formData);
navigate('..');
};
diff --git a/frontend/src/pages/QuizsetListPage/QuizsetListPage.jsx b/frontend/src/pages/QuizsetListPage/QuizsetListPage.jsx
index 119cfb9..4659ad1 100644
--- a/frontend/src/pages/QuizsetListPage/QuizsetListPage.jsx
+++ b/frontend/src/pages/QuizsetListPage/QuizsetListPage.jsx
@@ -8,8 +8,7 @@ export default function QuizsetListPage() {
const { lectureId } = useParams();
const { data } = useQuizsets(lectureId);
const quizsets = data?.data ?? [];
- // const userType = useBoundStore((state) => state.userType);
- console.log(quizsets);
+
return (
{
e.preventDefault();
- console.log(quizzes);
if (quizzes.length === 0) {
window.alert('퀴즈가 없는 퀴즈셋은 생성할 수 없습니다');
return;
diff --git a/frontend/src/pages/StudentReportDetailPage/StudentReportDetailPage.jsx b/frontend/src/pages/StudentReportDetailPage/StudentReportDetailPage.jsx
index c3a4b3f..1219e62 100644
--- a/frontend/src/pages/StudentReportDetailPage/StudentReportDetailPage.jsx
+++ b/frontend/src/pages/StudentReportDetailPage/StudentReportDetailPage.jsx
@@ -8,7 +8,6 @@ export default function StudentReportDetailPage() {
const { lectureId, reportId } = useParams();
const { data } = useStudentReportDetail(reportId);
const report = data.data;
- console.log(report);
const { allCount, correctCount, quizzes, title } = report;
const score = Math.round((100 * correctCount) / allCount);
return (
diff --git a/frontend/src/utils/axios/instance.js b/frontend/src/utils/axios/instance.js
index 16717f2..5600c2f 100644
--- a/frontend/src/utils/axios/instance.js
+++ b/frontend/src/utils/axios/instance.js
@@ -33,16 +33,12 @@ instance.interceptors.response.use(
.then((response) => {
const { accessToken } = response.data;
- console.log(accessToken);
useBoundStore.setState({ token: accessToken });
error.config.headers.Authorization = `${accessToken}`;
return instance(error.config);
})
.catch((error) => {
useBoundStore.setState({ token: null, userType: null });
- console.log(error);
- console.log('---로그아웃----');
- // TODO: redirect to home
return Promise.reject(error);
});
}