Skip to content

Conversation

@ProgrammerSONGBIT
Copy link
Contributor

Changes

  1. Changed == to === for strict equality (3 occurrences)
  2. Added return type annotation JSX.Element to component
  3. Fixed useEffect dependencies - added auth and navigate
  4. Added null safety to reduce operations
  5. Added number formatting using toLocaleString() to all stat values
  6. Added aria-label to "Add a Project" link for accessibility

Why

  • Follows TypeScript and ESLint best practices (strict equality)
  • Improves type safety with return type annotation
  • Fixes React Hooks exhaustive deps warning
  • Prevents potential runtime errors with null checks
  • Better UX - large numbers display with commas (e.g., 1,234 instead of 1234)
  • Improves accessibility for screen readers

## Changes
1. **Changed `==` to `===`** for strict equality (3 occurrences)
2. **Added return type annotation** `JSX.Element` to component 
3. **Fixed useEffect dependencies** - added `auth` and `navigate` 
4. **Added null safety** to reduce operations 
5. **Added number formatting** using `toLocaleString()` to all stat values
6. **Added aria-label** to "Add a Project" link for accessibility 

## Why
- Follows TypeScript and ESLint best practices (strict equality)
- Improves type safety with return type annotation
- Fixes React Hooks exhaustive deps warning
- Prevents potential runtime errors with null checks
- Better UX - large numbers display with commas (e.g., 1,234 instead of 1234)
- Improves accessibility for screen readers
@netlify
Copy link

netlify bot commented Jan 12, 2026

👷 Deploy request for kwoc-2025 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit c8027f5

@vercel
Copy link

vercel bot commented Jan 12, 2026

@ProgrammerSONGBIT is attempting to deploy a commit to the Ankit Meda's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant