mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-22 19:16:09 -05:00
Fix not being able to cancel SendouQ matches as admin
This commit is contained in:
@@ -17,7 +17,10 @@ export function FormWithConfirm({
|
||||
submitButtonVariant = "destructive",
|
||||
fetcher: _fetcher,
|
||||
}: {
|
||||
fields?: [name: string, value: string | number][];
|
||||
fields?: (
|
||||
| [name: string, value: string | number]
|
||||
| readonly [name: string, value: string | number]
|
||||
)[];
|
||||
children: React.ReactNode;
|
||||
dialogHeading: string;
|
||||
deleteButtonText?: string;
|
||||
|
||||
@@ -1096,6 +1096,7 @@ function BottomSection({
|
||||
fields={[
|
||||
["_action", "REPORT_SCORE"],
|
||||
["winners", "[]"],
|
||||
...(!data.groupMemberOf ? [["adminReport", "on"] as const] : []),
|
||||
]}
|
||||
deleteButtonText={t("common:actions.cancel")}
|
||||
cancelButtonText={t("common:actions.nevermind")}
|
||||
|
||||
Reference in New Issue
Block a user