Skip to content

Commit fd18888

Browse files
committed
chore: remove console.logs
1 parent 7e49c0c commit fd18888

File tree

5 files changed

+0
-10
lines changed

5 files changed

+0
-10
lines changed

frontend/src/app/admin/question/page.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ const QuestionPage = () => {
198198
});
199199

200200
const allQuestionsFiltered = useMemo(() => {
201-
console.log(allQuestions?.payload);
202201
if (Array.isArray(allQuestions?.payload)) {
203202
return allQuestions?.payload.filter((question) => {
204203
return (
@@ -212,8 +211,6 @@ const QuestionPage = () => {
212211
}
213212
}, [allQuestions?.payload, searchValue, filterQnType]);
214213

215-
console.log({ allQuestionsFiltered });
216-
217214
const deleteQuestionMutation = useMutation(
218215
async (questionId: string) => deleteQuestionUrl(questionId),
219216
{

frontend/src/app/api/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ export const fetchAllQuestionsDoneByUser = async () => {
6161
);
6262

6363
const questionIds = payload.map((ele: any) => ele.questionId).join("-");
64-
console.log({ questionIds });
6564
// console.log({ res });
6665
const questions = await FetchAuth.fetch(
6766
`${API_URL}/questions/group/${questionIds}`,
@@ -124,7 +123,6 @@ export const createQuestionUrl = async (newQuestion: QuestionType) => {
124123
})
125124
.then((res) => res.json())
126125
.then((res) => {
127-
console.log({ res });
128126
if (res.statusMessage?.type?.toLowerCase() === "error") {
129127
throw Error();
130128
}
@@ -142,7 +140,6 @@ export const updateQuestionUrl = async (updatedQuestion: QuestionType) => {
142140
})
143141
.then((res) => res.json())
144142
.then((res) => {
145-
console.log({ res });
146143
if (res.statusMessage?.type?.toLowerCase() === "error") {
147144
throw Error();
148145
}

frontend/src/app/components/matching/MatchingPage.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ const MatchingPage = () => {
139139
return fetchAllQuestionsDoneByUser();
140140
});
141141

142-
console.log({ allQuestions });
143-
144142
return (
145143
<>
146144
<main className="flex h-full flex-col items-center justify-center">

frontend/src/app/components/modal/AddQuestionModal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ const AddQuestionModal = ({
9292
description: e.currentTarget.description.value,
9393
};
9494

95-
console.log("Form Submission Data:", submissionData);
9695
createQuestionMutation && createQuestionMutation.mutate(submissionData);
9796
e.currentTarget.reset();
9897
setDefaultValues();

frontend/src/app/matching/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const roomPage = () => {
5858
);
5959
}
6060

61-
console.log(isMatched);
6261
if (isMatched === "UNMATCHED") {
6362
return <MatchingPage />;
6463
}

0 commit comments

Comments
 (0)