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';