diff --git a/web/src/components/QRFormWrapper/components/reference/hooks.ts b/web/src/components/QRFormWrapper/components/reference/hooks.ts index 11c20888..69d1a5f6 100644 --- a/web/src/components/QRFormWrapper/components/reference/hooks.ts +++ b/web/src/components/QRFormWrapper/components/reference/hooks.ts @@ -70,9 +70,11 @@ export function useAnswerReference, ) => { if (!repeats || action.action !== 'select-option') { - onChange(selectedValue as SingleValue); - } else if (repeats || action.action === 'select-option') { - onChange(selectedValue as MultiValue); + if (Array.isArray(selectedValue)) { + onChange(selectedValue as MultiValue); + } else { + onChange(selectedValue as SingleValue); + } } };