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.
Description
In the
CardSet.jscomponent, there is a typo in thestarsQuerylogic wherereducedState.minForksis incorrectly used instead ofreducedState.minStarswhen 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.minForkswithreducedState.minStarsin thesetStarsQueryfunction within theonAppliedFiltersmethod insrc/components/CardSet.js. Specifically, update the following line:Current:
Proposed:
Assignee
I would like to be assigned to this issue to implement the fix.