From 233f3e88c2d9bf0c97bab0fc08414de4df4b4aa3 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Thu, 9 Feb 2023 14:06:23 +0100 Subject: [PATCH] Fix: strange numbers --- js/localState.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/localState.js b/js/localState.js index 18513c2..bcf5955 100644 --- a/js/localState.js +++ b/js/localState.js @@ -79,7 +79,7 @@ document.addEventListener("alpine:init", () => { } case 3: { this.time = - ((new Date().getTime() - this.startedAt) / 1000).toFixed(2) * 1000; + parseInt(((new Date().getTime() - this.startedAt) / 1000).toFixed(2) * 1000); this.startedAt = null; sayNumber(this.time / 10);