Skip to content

Commit

Permalink
get rid of random console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmayeux05 committed Mar 6, 2024
1 parent a5d4260 commit bf0b4c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
6 changes: 3 additions & 3 deletions client/src/views/Mentor/Dashboard/AddMentor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ export default function AddMentor() {
try {
getMentor()
.then(response => {
console.log(response);
//console.log(response);
setMyID(response.data.id);
const tempClassList = [];
for (var i=0; i < response.data.classrooms.length; i++){
tempClassList.push(response.data.classrooms[i].id);
}
console.log(tempClassList);
//console.log(tempClassList);
setMyClassrooms(tempClassList);
setSchool(response.data.school.id);
setSchoolName(response.data.school.name);
Expand All @@ -69,7 +69,7 @@ export default function AddMentor() {
const fetchClassroomList = async () => {
try {
const response = await getSchoolList();
console.log(response);
//console.log(response);
const classroomData = response.data[school-1].classrooms.map(item => ({ id: item.id, name: item.name }))
setClassroomList(classroomData);
const newClassroomListToPass = [];
Expand Down
9 changes: 2 additions & 7 deletions client/src/views/Mentor/Dashboard/MentorRegister.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ export default function MentorRegister() {
const fetchClassroomList = async () => {
try {
const response = await getSchoolList();
console.log(response);
//console.log(response);
const classroomData = response.data[school-1].classrooms.map(item => ({ id: item.id, name: item.name }))
setClassroomList(classroomData);
console.log(classroomData);
//console.log(classroomData);
} catch (error) {
console.error('Error fetching classroom list:', error);
}
Expand All @@ -86,11 +86,6 @@ export default function MentorRegister() {
}, [school]);


console.log(SchoolList);




const handleLogin = () => {
setLoading(true);
createMentor('user', username.value,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "03/06/2024 4:13:32 PM"
"x-generation-date": "03/06/2024 9:12:04 PM"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down

0 comments on commit bf0b4c1

Please sign in to comment.