Skip to content

Commit

Permalink
Ignore unavailable state for secondary-info
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwillox committed Jul 5, 2020
1 parent 430218a commit 3bfe2f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/secondary-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ class SecondaryInfo extends HTMLElement {
? state.attributes[template.attribute]
: state.state;

this._getElement().innerHTML = `${template.prefix ||
""}${state}${template.postfix || ""}`;
if (state) {
this._getElement().innerHTML = `${template.prefix ||
""}${state}${template.postfix || ""}`;
}
}
}

Expand Down

0 comments on commit 3bfe2f1

Please sign in to comment.