singodiyashubham87 / GitWrap

GitWrap analyzes your GitHub contributions, showcasing a personalized summary of your coding journey throughout the year. Reflect, celebrate, and share your open-source achievements!
https://git-wrap.vercel.app
12 stars 4 forks source link

[BUG] Total Issue Contributions lead to Author's Issues page instead of the user's issues #63

Open ShreeluSantosh opened 1 month ago

ShreeluSantosh commented 1 month ago

Issue

In the user's stats page, the link icon besides Total Issue Contributions leads to the repo author's Issues page (https://github.com/issues?utf8=✓&q=is%3Aissue+author%3Asingodiyashubham87) instead of the supposed URL (https://github.com/issues?utf8=✓&q=is%3Aissue+author%3_[inputusername]_)

The issue is because the current URL has the author's username hardcoded in the /src/components/ContributionSummary.jsx file

Screenshots The URL redirecting to the author's Issues page image

The relevant code showing the author's username hardcoded into the URL: image

Solution Correct the code above to replace the hardcoded username with userDetails.username variable