Skip to content

Commit 916ac64

Browse files
committed
games: Fallback winner.turn to winner.id
1 parent 70de180 commit 916ac64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ps/games/game.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ export class BaseGame<State extends BaseState> {
587587
? []
588588
: this.winCtx.type === 'win'
589589
? 'winner' in this.winCtx
590-
? [this.winCtx.winner.turn]
590+
? [this.winCtx.winner.turn ?? this.winCtx.winner.id]
591591
: 'winnerIds' in this.winCtx
592592
? (this.winCtx.winnerIds as string[])
593593
: []

0 commit comments

Comments
 (0)