Skip to content

Commit

Permalink
fix(header): Hide unit when as_duration is used
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Jan 30, 2021
1 parent 4187104 commit 5686931
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apexcharts-card.ts
Expand Up @@ -336,7 +336,9 @@ class ChartsCard extends LitElement {
? prettyPrintTime(this._lastState?.[index], serie.show.as_duration)
: this._lastState?.[index]) || NO_VALUE}</span
>
<span id="uom">${computeUom(index, this._config, this._entities)}</span>
${!serie.show.as_duration
? html`<span id="uom">${computeUom(index, this._config, this._entities)}</span>`
: ''}
</div>
<div id="state__name">${computeName(index, this._config, this._entities)}</div>
</div>
Expand Down

0 comments on commit 5686931

Please sign in to comment.