Minor variable name change

This commit is contained in:
Josh Johnson 2018-05-23 14:43:52 +01:00
parent a591c32a24
commit 109a232171

View file

@ -249,16 +249,18 @@ class Choices {
this.currentState.groups !== this.prevState.groups ||
this.currentState.items !== this.prevState.items
);
const shouldRenderChoices = this.isSelectElement;
const shouldRenderItems = this.currentState.items !== this.prevState.items;
if (!stateChanged) {
return;
}
if (this.isSelectElement) {
if (shouldRenderChoices) {
this._renderChoices();
}
if (this.currentState.items !== this.prevState.items) {
if (shouldRenderItems) {
this._renderItems();
}