Skip to content

Commit

Permalink
fix function
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Apr 12, 2024
1 parent c025a06 commit 6d29fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkwpp-parser/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6d29fec

Please sign in to comment.