Skip to content

Commit

Permalink
comment section code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank-Gu-81 committed Jan 18, 2025
1 parent 7b0c582 commit 29f6b22
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions src/components/Comment/Comment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function Comment({ userName }) {
posts.push({ id: doc.id, ...doc.data() });
}
});
console.log("HEREREREERE?");
return posts[0];
} catch (error) {
console.log("Error: ", error);
Expand All @@ -41,13 +40,6 @@ function Comment({ userName }) {
fetchPosts();
}, [post_id]);

useEffect(() => {
if (postInfo) {
console.log("Updated postInfo: ", postInfo);
console.log("Course name: ", postInfo.course_name);
}
}, [postInfo]); // Log whenever postInfo updates

return (
<div>
<AppBar />
Expand All @@ -60,7 +52,6 @@ function Comment({ userName }) {
)}
</Container>

{/* add a comment section */}
<Container maxWidth="sm">
<Box className="comment-box">
<Typography variant="h6">Add a Comment</Typography>
Expand Down
1 change: 0 additions & 1 deletion src/components/Post/Post.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const courseClassMap = {
};

function getCourseChipClass(courseName) {
console.log("courseName: ", courseName);
const upper = courseName.toUpperCase();
for (const prefix in courseClassMap) {
if (upper.startsWith(prefix)) {
Expand Down

0 comments on commit 29f6b22

Please sign in to comment.