Clear pickup logo if switching to team in tournament registration

This commit is contained in:
Kalle
2025-12-27 09:23:59 +02:00
parent cb5db140b3
commit 97d9cd149d

View File

@@ -277,9 +277,12 @@ export function update({
avatarFileName,
userId,
})
: // don't overwrite the existing avatarImgId even if no new avatar is provided
// delete is a separate functionality
undefined;
: team.teamId
? // clear pickup avatar when switching to team signup, as team logo will be used
null
: // don't overwrite the existing avatarImgId even if no new avatar is provided
// delete is a separate functionality
undefined;
await trx
.updateTable("TournamentTeam")