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

Updated components/Ballot/PositionItem.jsx to support individual voter opinions. #213

Merged
merged 2 commits into from
Apr 16, 2016

Conversation

DaleMcGrew
Copy link
Member

Updated components/Ballot/PositionItem.jsx to support individual voter opinions. There is more work to do around displaying Voter and Public Figure positions, but this is a first step.


var position_description = <span></span>;
if (position.vote_smart_rating) {
var position_description = <p className="">
Copy link
Member

Choose a reason for hiding this comment

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

This will get hoisted because there is no block scope unless you use let. var will get hoisted outside of the block.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have altered this now for your review. Thank you.

Transitioned "var" to "let" per @pertrai1's suggestion.
@DaleMcGrew
Copy link
Member Author

Normally I would wait for someone else to merge, but I am merging this myself now because @pertrai1 already did one review (code updated per those suggestions), and the code is needed for a design discussion first thing in the morning. 👍

@DaleMcGrew DaleMcGrew merged commit 85b80ff into wevote:develop Apr 16, 2016
@DaleMcGrew DaleMcGrew deleted the dale_work_april14 branch April 16, 2016 06:37
@pertrai1
Copy link
Member

👍

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.

2 participants