From 9fdf49438b3764b4d59d18e425f34eaca2fb9b26 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Tue, 30 Jan 2024 17:24:11 +0200 Subject: [PATCH] Fix not being able to start bracket with byes (RR) --- .../core/brackets-manager/crud-db.server.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/features/tournament-bracket/core/brackets-manager/crud-db.server.ts b/app/features/tournament-bracket/core/brackets-manager/crud-db.server.ts index 6adce4ddc..8eda90fcb 100644 --- a/app/features/tournament-bracket/core/brackets-manager/crud-db.server.ts +++ b/app/features/tournament-bracket/core/brackets-manager/crud-db.server.ts @@ -478,8 +478,8 @@ export class Match { stageId: this.stageId, groupId: this.groupId, number: this.number, - opponentOne: this.opponentOne, - opponentTwo: this.opponentTwo, + opponentOne: this.opponentOne ?? "null", + opponentTwo: this.opponentTwo ?? "null", status: this.status, chatCode: nanoid(10), }) as any; @@ -497,8 +497,8 @@ export class Match { stageId: this.stageId, groupId: this.groupId, number: this.number, - opponentOne: this.opponentOne, - opponentTwo: this.opponentTwo, + opponentOne: this.opponentOne ?? "null", + opponentTwo: this.opponentTwo ?? "null", status: this.status, });