mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-03 06:35:42 -05:00
Fix misleading error
This commit is contained in:
parent
144b5d938a
commit
5956e45e22
|
|
@ -129,7 +129,7 @@ export const action = async ({ request, params }: ActionArgs) => {
|
|||
const groupMemberOfId = members.find((m) => m.id === user.id)?.groupId;
|
||||
invariant(
|
||||
groupMemberOfId || data.adminReport,
|
||||
"User is not a manager of any group",
|
||||
"User is not a member of any group",
|
||||
);
|
||||
|
||||
const winner = winnersArrayToWinner(data.winners);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user