Skip to content

Treat zero voting power as a valid value - #1124

Open
dreamerlyq-arch wants to merge 1 commit into
mainfrom
codex/use-my-votes-zero
Open

Treat zero voting power as a valid value#1124
dreamerlyq-arch wants to merge 1 commit into
mainfrom
codex/use-my-votes-zero

Conversation

@dreamerlyq-arch

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the truthiness guard in useMyVotes with explicit nil checks.
  • Preserves 0 / 0n as valid voting-power and proposal-threshold values before comparing them.
  • Correctly evaluates a zero voting-power value against a zero proposal threshold instead of returning false before the comparison.

Validation

  • pnpm --filter @degov/web lint
  • git diff --check

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

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.

1 participant