Fix not being able to cancel SendouQ matches as admin

This commit is contained in:
Kalle
2023-12-02 13:26:47 +02:00
parent c411f8f4ef
commit d7b1fc700f
2 changed files with 5 additions and 1 deletions

View File

@@ -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;

View File

@@ -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")}