Skip to content

Commit c172502

Browse files
fix: handle clock in resignation state
1 parent 39e970b commit c172502

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/hooks/useLichessStreamController.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ export const useLichessStreamController = (): LichessStreamController => {
9494
gameEnded: true,
9595
}))
9696

97+
setClockState((prev) => ({
98+
...prev,
99+
activeColor: null,
100+
lastUpdateTime: Date.now(),
101+
}))
102+
97103
return {
98104
...prev,
99105
termination: {

0 commit comments

Comments
 (0)