Skip to content

Commit

Permalink
Fix clock display on timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbayless committed Jun 16, 2024
1 parent e1febf0 commit 2a34299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli_chess/modules/clock/clock_presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_clock_display(self, color: Color) -> str:
clock_data = self.model.game_metadata.clocks[color]
time = clock_data.time

if not time:
if time is None:
return "--:--"

if not isinstance(time, datetime):
Expand Down

0 comments on commit 2a34299

Please sign in to comment.