Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. isEvaluated(data) {
  2. let currentPersonID = this.props.person.id;
  3. let evaluations = data.evaluations;
  4. evaluations.forEach(function (evaluation,index, this) {
  5. if (evaluation.personDto.id === currentPersonID) {
  6. console.log("ok");
  7. this.setState({
  8. showAddButton: false
  9. });
  10. console.log("showAddButton" + this.state.showAddButton);
  11. }
  12. });
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement