mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 15:48:23 -05:00
Clear pickup logo if switching to team in tournament registration
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user