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