From 59043fb2b8ff8cb9a6d718223555e337d0235fbc Mon Sep 17 00:00:00 2001 From: Peak Twilight <77903714+peaktwilight@users.noreply.github.com> Date: Thu, 19 Jun 2025 20:11:04 +0200 Subject: [PATCH] Update src/components/HeartbeatBar.vue Co-authored-by: Frank Elsinga --- src/components/HeartbeatBar.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/HeartbeatBar.vue b/src/components/HeartbeatBar.vue index 0c43d2ae2..b1975e51b 100644 --- a/src/components/HeartbeatBar.vue +++ b/src/components/HeartbeatBar.vue @@ -204,10 +204,10 @@ export default { */ timeSinceFirstBeat() { // For configured days mode, show the configured range - if (this.normalizedHeartbeatBarDays > 0) { - return this.normalizedHeartbeatBarDays < 2 ? - (this.normalizedHeartbeatBarDays * 24) + "h" : - this.normalizedHeartbeatBarDays + "d"; + if (this.normalizedHeartbeatBarDays >= 2) { + return this.normalizedHeartbeatBarDays + "d"; + if (this.normalizedHeartbeatBarDays == 1) { + return this.normalizedHeartbeatBarDays * 24) + "h"; } // For auto mode, calculate from actual data