fix BotMatch winner assignment

This commit is contained in:
Ilion Beyst 2022-11-26 10:50:09 +01:00
parent 2dc6b98177
commit 2b71ca625e
2 changed files with 1 additions and 2 deletions

View file

@ -52,7 +52,6 @@
width: 75px;
display: flex;
justify-content: center;
margin-top: -4px;
}
.bot-match-card-main {

View file

@ -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";