Skip to content

Commit

Permalink
remove double hour/minute formatting, oops
Browse files Browse the repository at this point in the history
  • Loading branch information
ironsheep committed Jul 26, 2020
1 parent 111d3ba commit 49a4dac
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/rpi-monitor-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,12 +496,7 @@ export class RPiMonitorCard extends LitElement {
const currLabelID = this._cardGlanceCssIDs[currName];
const currAttrKey = this._cardGlanceElements[currName];
const rawValue = this._getAttributeValueForKey(currAttrKey);
let latestValue = this._getGlanceCardValueForAttributeKey(currAttrKey);
if (currAttrKey == Constants.RPI_UP_TIME_KEY) {
latestValue = this._filterUptime(latestValue);
} else if (currAttrKey == Constants.RPI_LAST_UPDATE_KEY) {
latestValue = this._getUIDateForTimestamp(latestValue);
}
const latestValue = this._getGlanceCardValueForAttributeKey(currAttrKey);
const labelElement = root.getElementById(currLabelID);
labelElement.textContent = latestValue;
const currIconCssID = this._cardGlanceIconCssIDs[currName];
Expand Down

0 comments on commit 49a4dac

Please sign in to comment.