Skip to content
Snippets Groups Projects
Unverified Commit f8178a66 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Refactor variable assignment

parent 86d39e4c
No related branches found
No related tags found
No related merge requests found
......@@ -63,11 +63,7 @@ export class TextSwitch extends LitElement {
}
update(changedProperties) {
if (this._active === BUTTON1) {
this.name = this.name1;
} else {
this.name = this.name2;
}
this.name = this._active === BUTTON1 ? this.name1 : this.name2;
changedProperties.forEach((oldValue, propName) => {
if (propName === "name") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment