Skip to content

Commit

Permalink
Small change
Browse files Browse the repository at this point in the history
  • Loading branch information
khushiagl committed Jul 30, 2023
1 parent cf75ad9 commit 7763b8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/javascripts/Components/criteria_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class CriteriaFilter extends React.Component {

addCriterion = e => {
e.preventDefault();
this.props.addCriterion({name: this.state.name});
this.props.addCriterion({name: this.state.criterion});
this.setState({
criterion: "",
});
Expand All @@ -84,9 +84,9 @@ export class CriteriaFilter extends React.Component {
return option.criterion;
})
.sort()}
selected={this.state.name}
selected={this.state.criterion}
onSelect={selection => {
this.setState({name: selection});
this.setState({criterion: selection});
}}
disabled={this.props.criteria.map(criterion => {
return criterion.name;
Expand Down

0 comments on commit 7763b8f

Please sign in to comment.