-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: master
Are you sure you want to change the base?
Estimate Backend #46
Conversation
let userValue = '0'; | ||
if (story.userEstimates.length) { | ||
userValue = story.userEstimates[0].pointValue.toString(); | ||
} |
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
14d8f3b
to
a11c399
Compare
Mariana's PR, but now the estimates update on the frontend.