Skip to content

Commit

Permalink
Remove Console Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nephelite committed Dec 10, 2024
1 parent cdbbf22 commit 041757a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ const AssessmentMakeQuestionCard: React.FC<AssessmentMakeQuestionCardProps> = ({
case 'Multiple Choice':
case 'Multiple Response':
if ('options' in questionData && questionData.options) {
console.log(questionData.options);
setOptions(questionData.options.map(option => option.text));
setOptionPoints(
questionData.options.map(option => Math.abs(option.points || 0))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const AssessmentInternalForm: React.FC<AssessmentInternalFormProps> = ({
handleDeleteQuestion,
onAssessmentUpdated,
}) => {
console.log(questions);
const [isReleaseModalOpen, setIsReleaseModalOpen] = useState<boolean>(false); // Modal for releasing the form
const [isRecallModalOpen, setIsRecallModalOpen] = useState<boolean>(false); // Modal for recalling the form

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ const InternalAssessmentDetail: React.FC = () => {
return;
}
const teams: Team[] = await fallbackResponse.json();
console.log(teams);

assignedUsers = teams.flatMap(team =>
team.members.map(member => {
Expand Down Expand Up @@ -206,7 +205,6 @@ const InternalAssessmentDetail: React.FC = () => {
return;
}
const data: AssessmentResult[] = (await response.json()).data;
console.log(data);
setAssessmentResults(data);
} catch (error) {
console.error('Error fetching assessment results:', error);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const ViewSubmissionPage: React.FC = () => {
fetch(`/api/submissions/${submissionId}`)
.then(res => res.json())
.then((data: Submission) => {
console.log(data);
setSubmission(data);
})
.catch(error => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ const TakeAssessment: React.FC<TakeAssessmentProps> = ({
canEdit = true,
isFaculty = false,
}) => {
console.log(existingSubmission);
const router = useRouter();
const { id, assessmentId } = router.query as {
id: string;
Expand Down Expand Up @@ -124,7 +123,6 @@ const TakeAssessment: React.FC<TakeAssessmentProps> = ({
}
const data: InternalAssessment = await response.json();
setAssessment(data);
console.log(data);
} catch (error) {
console.error('Error fetching assessment:', error);
}
Expand All @@ -144,7 +142,6 @@ const TakeAssessment: React.FC<TakeAssessmentProps> = ({
}
const data: Question[] = await response.json();
setQuestions(data);
console.log(data);
} catch (error) {
console.error('Error fetching questions:', error);
}
Expand Down Expand Up @@ -216,15 +213,13 @@ const TakeAssessment: React.FC<TakeAssessmentProps> = ({
label: member.name,
})),
}));
console.log(options);
setTeamOptions(options);
} else if (assessment.granularity === 'individual') {
const users = data as User[];
const options = users.map(user => ({
value: user._id,
label: user.name,
}));
console.log(options);
setTeamMembersOptions(options);
}
} catch (error) {
Expand Down Expand Up @@ -315,7 +310,6 @@ const TakeAssessment: React.FC<TakeAssessmentProps> = ({
},
{} as { [questionId: string]: AnswerInput }
);
console.log('INIT ANS', initialAnswers);
setAnswers(initialAnswers);

const initialTotalScore =
Expand Down

0 comments on commit 041757a

Please sign in to comment.