Skip to content

Comments

Fixed typecasting error#137

Merged
aviralsaxena16 merged 1 commit intoOpenLake:mainfrom
aviralsaxena16:Linting_error
Jan 20, 2026
Merged

Fixed typecasting error#137
aviralsaxena16 merged 1 commit intoOpenLake:mainfrom
aviralsaxena16:Linting_error

Conversation

@aviralsaxena16
Copy link
Member

@aviralsaxena16 aviralsaxena16 commented Jan 20, 2026

Summary by CodeRabbit

  • Bug Fixes
    • Fixed contest duration display to accurately reflect contest information.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link

vercel bot commented Jan 20, 2026

@aviralsaxena16 is attempting to deploy a commit to the aviralsaxena16's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

🎉 Thanks for Your Contribution to CanonForces! ☺️

We'll review it as soon as possible. In the meantime, please:

  • ✅ Double-check the file changes.
  • ✅ Ensure that all commits are clean and meaningful.
  • ✅ Link the PR to its related issue (e.g., Closes #123).
  • ✅ Resolve any unaddressed review comments promptly.

💬 Need help or want faster feedback?
Join our Discord 👉 CanonForces Discord

Thanks again for contributing 🙌 – @aviralsaxena16!
cc: @aviralsaxena16

@aviralsaxena16 aviralsaxena16 merged commit 3b5e9a4 into OpenLake:main Jan 20, 2026
1 of 3 checks passed
@coderabbitai
Copy link

coderabbitai bot commented Jan 20, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

Updated type definitions for helper functions to accept both string and numeric timestamps, and corrected the property reference for contest duration from contestDuration to duration in the ContestsSidebar component.

Changes

Cohort / File(s) Summary
Type Updates & Property Correction
src/common/components/ContestsSidebar/ContestsSidebar.tsx
Expanded formatDate and isContestToday function parameters from string to `string

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Poem

🐰 A rabbit hops through types with glee,
String and number, now both agree!
Duration fixed with care so neat,
Our contests' properties now complete.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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