Skip to content

Fix typo in stars filter using minStars instead of minForks#188

Open
Kunall7890 wants to merge 1 commit into
version0chiro:mainfrom
Kunall7890:fix-stars-query
Open

Fix typo in stars filter using minStars instead of minForks#188
Kunall7890 wants to merge 1 commit into
version0chiro:mainfrom
Kunall7890:fix-stars-query

Conversation

@Kunall7890
Copy link
Copy Markdown

🐛 Fix: Correct typo in stars filter query (Fixes #160)

📌 Description

This PR fixes an issue in the repository filtering logic where the minimum stars filter was incorrectly using the forks value instead of the stars value.

Specifically, in src/components/CardSet.js, the setStarsQuery logic inside the onAppliedFilters function referenced reducedState.minForks instead of reducedState.minStars.

This caused incorrect GitHub API queries when users applied a minimum stars filter, leading to inaccurate search results.


✅ Changes Made

  • Updated src/components/CardSet.js

  • Fixed incorrect reference in setStarsQuery:

    • Replaced reducedState.minForks with reducedState.minStars
  • Ensured correct query generation using:

    stars:>=<value>
    

🔍 Testing Performed

  • Tested the functionality locally

  • Verified that:

    • The query now correctly includes stars:>=<value>
    • Results match the expected star count filter
  • Confirmed no regressions in other filters


🔗 Related Issue

Closes #160


✔️ Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Code is properly commented where necessary
  • No new warnings or errors introduced

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 19, 2026

Deploy Preview for find-me-issues ready!

Name Link
🔨 Latest commit 46a2d57
🔍 Latest deploy log https://app.netlify.com/projects/find-me-issues/deploys/69e464402814c100075c90a8
😎 Deploy Preview https://deploy-preview-188--find-me-issues.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 19, 2026

Deploy Preview for find-me-issues-web-app ready!

Name Link
🔨 Latest commit 46a2d57
🔍 Latest deploy log https://app.netlify.com/projects/find-me-issues-web-app/deploys/69e46440a945550008519a73
😎 Deploy Preview https://deploy-preview-188--find-me-issues-web-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Typo in starsQuery Logic

1 participant