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, });