fix: resolve 4 bugs in devtrack - #3379
Conversation
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
Closing as part of a bulk-spam cleanup. See the warning on #3490. This PR is one of 126 open pull requests with the identical title "fix: resolve 4 bugs in devtrack" from the same account, containing the same changes — which have already been closed with explanations on 2026-07-29, 2026-07-31 and again today. The core change is still incorrect: - parseInt(searchParams.get("days") || "30", 10)
+ parseInt(searchParams.get("days", 10) || "30", 10)
Please open one PR per change, and run |
Description
This PR fixes real bugs found in the codebase:
== nullalso matchesundefined, masking type errors; replaced with strict=== null.Number.EPSILONtoMath.round: prevents floating-point drift (e.g.1.005 * 100rounding to 100 instead of 101).==to===: loose equality performs type coercion, which can silently compare0 == '0'orfalse == 0as equal.x === trueis equivalent tox(andx === falseto!x), and shorter to read.Type of Change
How Has This Been Tested?
Checklist
Related Issue
Ref: #3378