Enhancement: Avoid console.error on 404 route — avoid spamming client logs #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The
NotFoundcomponent currently logs aconsole.errorwhenever a user lands on a 404 route.Impact
Location
src/pages/NotFound.tsx(useEffect, around lines ~7–9)Suggested Fix
Remove the
console.errorstatement.If tracking 404 events is required:
Example
Acceptance Criteria
console.errorfrom theNotFoundcomponent.console.errorcalls remain in production-facing code.Local Verification
Run the following commands before creating the PR.
Build
Lint Check