diff options
Diffstat (limited to 'web/pw-server/src/lib/matches.ts')
-rw-r--r-- | web/pw-server/src/lib/matches.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/pw-server/src/lib/matches.ts b/web/pw-server/src/lib/matches.ts index d889a0d..9af8943 100644 --- a/web/pw-server/src/lib/matches.ts +++ b/web/pw-server/src/lib/matches.ts @@ -38,7 +38,7 @@ export function apiMatchtoBotMatch(bot_name: string, apiMatch: ApiMatch): BotMat let outcome: BotMatchOutcome; if (apiMatch.winner === playerIndex) { outcome = "win"; - } else if (apiMatch.winner) { + } else if (apiMatch.winner !== null) { outcome = "loss"; } else { outcome = "tie"; |