Skip to content

Commit

Permalink
Remove console.log() from frontend
Browse files Browse the repository at this point in the history
-Probably left over from development but app/(authenticated)/template.tsx prints the user object to console, which leaks email(personal info)
  • Loading branch information
haoyangw committed Sep 25, 2024
1 parent 38c1699 commit 25b36b5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion frontend/app/(authenticated)/template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default function RedirectIfNotAuthenticated({
if (!isLoggedIn) {
router.push("/login");
}
console.log("fetching", user);
if (isLoggedIn && !user!.categories.length) {
router.push("/onboarding");
}
Expand Down

0 comments on commit 25b36b5

Please sign in to comment.