0
0
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:
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({
this.setState({ historyExists : historyExists(this.props.brew)
historyExists : !this.state.historyExists });
});
};
}, },
mergeCustomizer : function(oldValue, newValue, key) { mergeCustomizer : function(oldValue, newValue, key) {