From b98e98d961566b0f121fad901cf0363cb9ea4a82 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 31 Dec 2024 12:19:49 +0100 Subject: travelynx-actions: do not compute delay if scheduled == 0 --- public/static/js/travelynx-actions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/static/js/travelynx-actions.js b/public/static/js/travelynx-actions.js index 5f58f29..d4ddf45 100644 --- a/public/static/js/travelynx-actions.js +++ b/public/static/js/travelynx-actions.js @@ -75,6 +75,9 @@ function hhmm(epoch) { return (h < 10 ? '0' + h : h) + ':' + (m < 10 ? '0' + m : m); } function odelay(sched, rt) { + if (sched == 0) { + return ''; + } if (sched < rt) { return ' (+' + ((rt - sched) / 60) + ')'; } -- cgit v1.2.3