Skip to content

Commit

Permalink
Fix missing return keyword on main state toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
benct committed Oct 9, 2020
1 parent d81e559 commit 0d54c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiple-entity-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
}

renderMainState() {
if (this.state.toggle) this.renderToggle(this.state.stateObj);
if (this.state.toggle) return this.renderToggle(this.state.stateObj);
else if (this._config.format) return this.renderFormat(this.state.value, this._config.format);
else return html`${this.state.value}`;
}
Expand Down

0 comments on commit 0d54c9b

Please sign in to comment.