1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Minor text fixes

This commit is contained in:
Jon Ziebell 2023-02-05 06:40:17 -05:00
parent a524a92003
commit 263a54960d
2 changed files with 3 additions and 3 deletions

View File

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

View File

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