Skip to content

fix: resolve 2 bugs - #239

Open
saurabhhhcodes wants to merge 3 commits into
ThePlator:mainfrom
saurabhhhcodes:fix/NPMChat-84156
Open

fix: resolve 2 bugs#239
saurabhhhcodes wants to merge 3 commits into
ThePlator:mainfrom
saurabhhhcodes:fix/NPMChat-84156

Conversation

@saurabhhhcodes

@saurabhhhcodes saurabhhhcodes commented Aug 2, 2026

Copy link
Copy Markdown

Description

This PR fixes real bugs found in the codebase:

  • Fixed default .sort(): it coerces to strings, so [10, 9, 2] sorts as [10, 2, 9]; added numeric comparator.
  • Added null-safety guard: .map() on an undefined collection threw TypeError; now falls back to [].

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: #246

@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Someone is attempting to deploy a commit to the Sameer's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added level:intermediate Intermediate level difficulty quality:clean Clean code quality type:bug Bug fix labels Aug 2, 2026
@saurabhhhcodes saurabhhhcodes changed the title fix: code quality and safety improvements fix: resolve 3 bugs Aug 2, 2026
@saurabhhhcodes saurabhhhcodes changed the title fix: resolve 3 bugs fix: resolve 2 bugs Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:intermediate Intermediate level difficulty quality:clean Clean code quality type:bug Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant