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

Estimate Backend #46

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

Estimate Backend #46

wants to merge 8 commits into from

Conversation

theroyalblah
Copy link
Contributor

Mariana's PR, but now the estimates update on the frontend.

let userValue = '0';
if (story.userEstimates.length) {
userValue = story.userEstimates[0].pointValue.toString();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: could be a ternary.

});
if (story.userEstimates.length) {
story.userEstimates[0].pointValue = e.target.value;
dispatch(setStory(story, storyPosition));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does this dispatch happen?

userEmail: currentUser.email,
});
if (story.userEstimates.length) {
story.userEstimates[0].pointValue = e.target.value;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we mutates props? Can we assume this is always changing the first userEstimates element?

@theroyalblah theroyalblah force-pushed the sb/mpp-estimate-backend branch from 14d8f3b to a11c399 Compare August 15, 2019 21:14
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.

3 participants