Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
71
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.  
  5. evaluations.forEach(function (evaluation) {
  6. if (evaluation.personDto.id === currentPersonID) {
  7. console.log("ok");
  8. this.setState({
  9. showAddButton: false
  10. });
  11. console.log("showAddButton" + this.state.showAddButton);
  12. }
  13. }, this);
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement