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

Displayed validators who have not voted for proposal yet#550

Open
MonikaCat wants to merge 7 commits intomasterfrom
monika/display-validator-did-not-vote-on-proposal
Open

Displayed validators who have not voted for proposal yet#550
MonikaCat wants to merge 7 commits intomasterfrom
monika/display-validator-did-not-vote-on-proposal

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.

@MonikaCat MonikaCat requested a review from kwunyeung August 5, 2021 11:39
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