Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: undefined gauge hash #10948

Merged
merged 1 commit into from
Nov 16, 2024
Merged

fix: undefined gauge hash #10948

merged 1 commit into from
Nov 16, 2024

Conversation

ChefJerry
Copy link
Contributor

@ChefJerry ChefJerry commented Nov 16, 2024


PR-Codex overview

This PR focuses on improving the filtering of gauges in the useUserVoteGauges hook to ensure only valid gauges with a hash are processed when creating the contracts array.

Detailed summary

  • Added a .filter((g) => !!g.hash) to ensure only gauges with a valid hash are included.
  • The structure of the contracts array creation remains the same, but now excludes any invalid gauges.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Nov 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2024 5:52am
6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
aptos-web ⬜️ Ignored (Inspect) Visit Preview Nov 16, 2024 5:52am
blog ⬜️ Ignored (Inspect) Visit Preview Nov 16, 2024 5:52am
bridge ⬜️ Ignored (Inspect) Visit Preview Nov 16, 2024 5:52am
games ⬜️ Ignored (Inspect) Visit Preview Nov 16, 2024 5:52am
gamification ⬜️ Ignored (Inspect) Visit Preview Nov 16, 2024 5:52am
uikit ⬜️ Ignored (Inspect) Visit Preview Nov 16, 2024 5:52am

@ChefJerry ChefJerry merged commit cdcfb36 into develop Nov 16, 2024
19 checks passed
@ChefJerry ChefJerry deleted the fix/empty-gauge branch November 16, 2024 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants