From 263a54960d049a81cd3d092515e587d3335d0362 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sun, 5 Feb 2023 06:40:17 -0500 Subject: [PATCH] Minor text fixes --- js/component/card/metrics.js | 4 ++-- js/component/card/temperature_profiles.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/component/card/metrics.js b/js/component/card/metrics.js index 3aa3241..06b3a76 100644 --- a/js/component/card/metrics.js +++ b/js/component/card/metrics.js @@ -195,7 +195,7 @@ beestat.component.card.metrics.prototype.get_subtitle_ = function() { // How much data was used to generate this. const duration_weeks = Math.round(thermostat.profile.metadata.duration / 7); - duration_text += ' from the past '; + duration_text += ' from the past'; if (duration_weeks === 0) { duration_text += ' few days'; } else if (duration_weeks === 1) { @@ -203,7 +203,7 @@ beestat.component.card.metrics.prototype.get_subtitle_ = function() { } else if (duration_weeks >= 52) { duration_text += ' year'; } else { - duration_text += duration_weeks + ' weeks'; + duration_text += ' ' + duration_weeks + ' weeks'; } duration_text += ' of data'; diff --git a/js/component/card/temperature_profiles.js b/js/component/card/temperature_profiles.js index dd7bea8..4f11cdd 100644 --- a/js/component/card/temperature_profiles.js +++ b/js/component/card/temperature_profiles.js @@ -253,7 +253,7 @@ beestat.component.card.temperature_profiles.prototype.get_subtitle_ = function() } else if (duration_weeks >= 52) { duration_text += ' year'; } else { - duration_text += duration_weeks + ' weeks'; + duration_text += ' ' + duration_weeks + ' weeks'; } duration_text += ' of data';