diff --git a/frontend/src/components/SurveyModal/CheckboxList.tsx b/frontend/src/components/SurveyModal/CheckboxList.tsx
index c0bd9b8..fac837e 100644
--- a/frontend/src/components/SurveyModal/CheckboxList.tsx
+++ b/frontend/src/components/SurveyModal/CheckboxList.tsx
@@ -8,15 +8,32 @@ export type CheckboxListProps = {
label: string
description?: string
maxValues?: number
+ hasError?: boolean
}
-export function CheckboxList({ field, data, watch, label, description, maxValues = data.length }: CheckboxListProps) {
+export function CheckboxList({
+ field,
+ data,
+ watch,
+ label,
+ description,
+ maxValues = data.length,
+ hasError,
+}: CheckboxListProps) {
const selectedOptions: string[] = watch(field.name, []) || []
const getDisabled = (value: string) => !selectedOptions.includes(value) && selectedOptions.length >= maxValues
return (
-