From a6ea9c30220e904ad66e10b1d6bcf57db7b20380 Mon Sep 17 00:00:00 2001 From: Laura Date: Tue, 4 Nov 2025 05:34:34 +0100 Subject: [PATCH] fixed 1 decimal for time --- static/js/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/chat.js b/static/js/chat.js index c486deb..d06f48c 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -261,7 +261,7 @@ this.#_time = make("div", "time"); if (this.#time) { - this.#_time.textContent = `${this.#time}s`; + this.#_time.textContent = `${this.#time.toFixed(1)}s`; } _body.appendChild(this.#_time); @@ -868,7 +868,7 @@ this.#time = time; if (this.#time) { - this.#_time.textContent = `${this.#time}s`; + this.#_time.textContent = `${this.#time.toFixed(1)}s`; } }