Skip to content

fix: resolve 4 bugs in RankerHub - #681

Closed
saurabhhhcodes wants to merge 1 commit into
indresh404:mainfrom
saurabhhhcodes:fix/RankerHub-14073
Closed

saurabhhhcodes wants to merge 1 commit into
indresh404:mainfrom
saurabhhhcodes:fix/RankerHub-14073

Conversation

@saurabhhhcodes

Copy link
Copy Markdown

Description

This PR fixes real bugs found in the codebase:

  • Added explicit radix to parseInt: without 10, strings like '0x1F' or '08' parse in unintended bases.
  • Tightened == to ===: loose equality performs type coercion, which can silently compare 0 == '0' or false == 0 as equal.
  • Removed redundant boolean comparison: x === true is equivalent to x (and x === false to !x), and shorter to read.
  • Removed wrapper constructors: new Number()/new String() create object wrappers that break strict equality; use the function form.

Type of Change

  • Bug fix (non-breaking change fixing an issue)

How Has This Been Tested?

  • Local manual testing

Checklist

  • My code follows the style guidelines
  • I have performed a self-review

Related Issue

Ref: #680

@vercel

vercel Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ranker-hub Ready Ready Preview Aug 5, 2026 12:43pm

@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request frontend Frontend related changes (HTML/CSS/JS/React) nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review labels Aug 5, 2026
@saurabhhhcodes saurabhhhcodes mentioned this pull request Aug 5, 2026
4 tasks done
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

@github-actions github-actions Bot added the stale label Aug 26, 2026
@saurabhhhcodes saurabhhhcodes closed this by deleting the head repository Aug 29, 2026
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related discussions.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 13, 2026

This branch was successfully deployed

1 active deployment
Preview — aa0e9c01 Deployed Aug 5, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request frontend Frontend related changes (HTML/CSS/JS/React) nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant