mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-26 05:12:19 -05:00
Fix can add players without friend code
This commit is contained in:
@@ -261,8 +261,8 @@ export const action: ActionFunction = async ({ request, params }) => {
|
||||
"No trust given from this user",
|
||||
);
|
||||
errorToastIfFalsy(
|
||||
(await UserRepository.findLeanById(user.id))?.friendCode,
|
||||
"No friend code",
|
||||
(await UserRepository.findLeanById(data.userId))?.friendCode,
|
||||
"User you are trying to add has no friend code set",
|
||||
);
|
||||
errorToastIfFalsy(tournament.registrationOpen, "Registration is closed");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user