mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-11 21:29:09 -05:00
Don't check group status when reporting score
This commit is contained in:
parent
e07fff02b0
commit
c11d7a4042
|
|
@ -97,12 +97,14 @@ export const action: ActionFunction = async ({
|
|||
g.members.some((m) => m.memberId === user.id)
|
||||
);
|
||||
validate(ownGroup, "Not own match");
|
||||
validate(ownGroup.status === "MATCH", "Group doesn't have a match");
|
||||
validate(isGroupAdmin({ group: ownGroup, user }), "Not group admin");
|
||||
|
||||
switch (data._action) {
|
||||
case "REPORT_SCORE": {
|
||||
if (match.stages.some((stage) => stage.winnerGroupId)) {
|
||||
const matchWasAlreadyReported = match.stages.some(
|
||||
(stage) => stage.winnerGroupId
|
||||
);
|
||||
if (matchWasAlreadyReported) {
|
||||
// just don't do anything if they report same as someone else before them
|
||||
// to user it looks identical to if they were the first to submit
|
||||
if (
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user