Skip to content

Commit

Permalink
Format MBLD results below 1 minute more clearly (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxidragon authored Jul 21, 2024
1 parent d6a6495 commit 2f3e232
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/lib/attempt-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ function formatMbldAttemptResult(attemptResult) {
decodeMbldAttemptResult(attemptResult);
const clockFormat = centisecondsToClockFormat(centiseconds);
const shortClockFormat = clockFormat.replace(/\.00$/, "");
return `${solved}/${attempted} ${shortClockFormat}`;
return `${solved}/${attempted} ${
centiseconds < 6000 ? `0:${shortClockFormat}` : shortClockFormat
}`;
}

function formatFmAttemptResult(attemptResult) {
Expand Down

0 comments on commit 2f3e232

Please sign in to comment.