diff --git a/app/features/tournament/TournamentTeamRepository.server.ts b/app/features/tournament/TournamentTeamRepository.server.ts index a2850855b..e44118c5b 100644 --- a/app/features/tournament/TournamentTeamRepository.server.ts +++ b/app/features/tournament/TournamentTeamRepository.server.ts @@ -288,7 +288,9 @@ export function upsertRegistration({ for (const userId of membersToAdd) { const isOwner = isNew && userId === ownerUserId; - const inGameName = await resolveInGameName(trx, tournamentId, userId); + const inGameName = + inGameNameUpdates.find((member) => member.userId === userId) + ?.inGameName ?? (await resolveInGameName(trx, tournamentId, userId)); await trx .insertInto("TournamentTeamMember")