We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70de180 commit 916ac64Copy full SHA for 916ac64
1 file changed
src/ps/games/game.ts
@@ -587,7 +587,7 @@ export class BaseGame<State extends BaseState> {
587
? []
588
: this.winCtx.type === 'win'
589
? 'winner' in this.winCtx
590
- ? [this.winCtx.winner.turn]
+ ? [this.winCtx.winner.turn ?? this.winCtx.winner.id]
591
: 'winnerIds' in this.winCtx
592
? (this.winCtx.winnerIds as string[])
593
: []
0 commit comments