Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- isEvaluated(data) {
- let currentPersonID = this.props.person.id;
- let evaluations = data.evaluations;
- evaluations.forEach(function (evaluation) {
- if (evaluation.personDto.id === currentPersonID) {
- console.log("ok");
- this.setState({
- showAddButton: false
- });
- console.log("showAddButton" + this.state.showAddButton);
- }
- }, this);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement