Skip to content

Bug: String vs number type mismatch in student info lookup #114

@Siddh2024

Description

@Siddh2024

Bug

In scripts/fetch-student-info.js:63, a string username is compared against u.id which is likely numeric. The .find() always returns undefined due to type mismatch ("abc" === 123 is always false).

Impact

Student info lookup is completely broken - never finds matching students.

Fix

Use == or convert both to same type: String(u.id) === username.

@codepvg Please assign me this issue under GSSOC 2026.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions