Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonym-tsk committed Dec 28, 2023
1 parent 6581810 commit 6ed2f8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions dist/starline-card.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/ts/StarlineCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ export class StarlineCard extends HTMLElement {

if (state !== null && state !== data.value) {
this._info[key].value = state;
const unit = this._getAttr(key, 'unit_of_measurement');
// Не показываем 'satellites' для спутников
const unit = key === 'gps' ? '' :
this._getAttr(key, 'unit_of_measurement');
this._info[key].element!.querySelector('.info-i-cnt')!.textContent = `${state} ${unit}`;
}
}
Expand Down

0 comments on commit 6ed2f8d

Please sign in to comment.