From 7d12afd3a100036d89ae78ce8c90938ba1826ad9 Mon Sep 17 00:00:00 2001 From: BelKed <66956532+BelKed@users.noreply.github.com> Date: Thu, 9 May 2024 06:05:46 +0200 Subject: [PATCH] fix: correctly calculate duration of 1 hour in seconds --- src/components/UncategorizedNotification.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/UncategorizedNotification.vue b/src/components/UncategorizedNotification.vue index 532cae67..ab89df03 100644 --- a/src/components/UncategorizedNotification.vue +++ b/src/components/UncategorizedNotification.vue @@ -30,7 +30,7 @@ export default { isVisible() { // TODO: make configurable? // if total duration is less than 1 hour, don't show it - const overTotal = this.total > 60 * 60 * 1000; + const overTotal = this.total > 60 * 60; // if ratio is > 0.3, show it const overRatio = this.ratio > 0.3; // if there's a category filter (url has category query param), don't show it