Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Displayed validators who have not voted for proposal yet #550

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

MonikaCat
Copy link
Contributor

@MonikaCat MonikaCat commented Jul 21, 2021

Description

Fixes #355

Checklist

  • Targeted PR against correct branch.
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Run meteor npm run lint
  • Added an entry to the CHANGELOG.md file.
  • Re-reviewed Files changed in the Github PR explorer.

@MonikaCat MonikaCat requested a review from kwunyeung July 21, 2021 05:27
renderValidatorsWithoutVote() {
return <Result className="tally-result-detail" pose={this.state.open ? 'open' : 'closed'}>
<Card className='tally-result-table'>
{this.props.proposal.validatorsDidNotVote.list.map((vote, i) =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MonikaCat can any of the objects here be undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok right, the value becomes undefined when it can't read the data from the db. I have updated the code to handle it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Governance proposal: Display validators who have not voted yet
2 participants