0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Simplify historyExists state logic

This commit is contained in:
G.Ambatte
2024-09-17 07:41:34 +12:00
parent 53c05a3ef6
commit 83a7636b6f

View File

@@ -68,11 +68,9 @@ const Snippetbar = createClass({
});
};
if(historyExists(this.props.brew) != this.state.historyExists){
this.setState({
historyExists : !this.state.historyExists
});
};
this.setState({
historyExists : historyExists(this.props.brew)
});
},
mergeCustomizer : function(oldValue, newValue, key) {