Skip to content

Commit

Permalink
fix: 0 seconds in cooldown shows empty space, close #615
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed May 29, 2024
1 parent a3eba84 commit c167b8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private String formatDuration(@NotNull Duration duration) {
if (minutes > 0) {
formattedDuration.add(minutes + "m");
}
if (seconds > 0) {
if (seconds >= 0) {
formattedDuration.add(seconds + "s");
}
return formattedDuration.toString();
Expand Down

0 comments on commit c167b8f

Please sign in to comment.