From 66971ed204ecf947bf1943d74977774a6f0cddd9 Mon Sep 17 00:00:00 2001 From: Milli Date: Thu, 26 May 2022 14:47:32 +0200 Subject: [PATCH] string or number array to mixed array --- web/components/choices-toggle-group.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/choices-toggle-group.tsx b/web/components/choices-toggle-group.tsx index d56eabbc..d2f80d14 100644 --- a/web/components/choices-toggle-group.tsx +++ b/web/components/choices-toggle-group.tsx @@ -4,7 +4,7 @@ import clsx from 'clsx' export function ChoicesToggleGroup(props: { currentChoice: number | string setChoice: (p: any) => void //number | string does not work here because of SetStateAction in .tsx - choices: number[] | string[] + choices: (number | string)[] titles: string[] isSubmitting?: boolean }) {