mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-19 00:57:55 -05:00
Fix can add players without friend code
This commit is contained in:
parent
0eedac25cd
commit
d32ff56da8
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user