Skip to content

Fix Typo in starsQuery Logic #160

@Hebown

Description

@Hebown

Description

In the CardSet.js component, there is a typo in the starsQuery logic where reducedState.minForks is incorrectly used instead of reducedState.minStars when setting the minimum stars filter for GitHub API queries. This causes the star count filter to incorrectly use the forks value, leading to inaccurate repository search results.

Proposed Fix

Replace reducedState.minForks with reducedState.minStars in the setStarsQuery function within the onAppliedFilters method in src/components/CardSet.js. Specifically, update the following line:

Current:

setStarsQuery(`stars:>=${reducedState.minForks}`);

Proposed:

setStarsQuery(`stars:>=${reducedState.minStars}`);

Assignee

I would like to be assigned to this issue to implement the fix.

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