mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 21:02:43 +00:00
Simplify historyExists state logic
This commit is contained in:
@@ -68,11 +68,9 @@ const Snippetbar = createClass({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
if(historyExists(this.props.brew) != this.state.historyExists){
|
this.setState({
|
||||||
this.setState({
|
historyExists : historyExists(this.props.brew)
|
||||||
historyExists : !this.state.historyExists
|
});
|
||||||
});
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
|
|
||||||
mergeCustomizer : function(oldValue, newValue, key) {
|
mergeCustomizer : function(oldValue, newValue, key) {
|
||||||
|
|||||||
Reference in New Issue
Block a user