From 6d29feca9be7546adb7e03f01bff1682555a5964 Mon Sep 17 00:00:00 2001 From: FallBackITA27 Date: Fri, 12 Apr 2024 17:20:28 +0200 Subject: [PATCH] fix function --- mkwpp-parser/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkwpp-parser/script.js b/mkwpp-parser/script.js index 3b0a071..8501c4c 100644 --- a/mkwpp-parser/script.js +++ b/mkwpp-parser/script.js @@ -327,7 +327,7 @@ document.getElementById("readInput").addEventListener("click", async function() }); function writeTimeOutput(time) { - return `${constants.track_names[time.track]}:${time.flap ? " flap" : ""}${time.nosc ? " nosc" : ""} ${formatMsToTime(time.time)}${" " + time.comment}` + return `${constants.track_names[time.track]}:${time.flap ? " flap" : ""}${time.nosc ? " nosc" : ""} ${formatMsToTime(time.time)}${time.comment !== "" ? " " + time.comment : ""}` } function formatMsToTime(i32) {