Skip to content

Commit 828a2f6

Browse files
committed
allow profile updates
1 parent ed4162f commit 828a2f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ui/screens/question-pages/components/input-types/ProfileInputMultiSelection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const ProfileInputMultiSelection = ({
99
error,
1010
optionsFormat = "rdf",
1111
}) => {
12-
const { t } = useTranslation();
12+
const { t } = useTranslation();;
1313

1414
const choices = useMemo(() => {
1515
const map = {};
@@ -55,7 +55,7 @@ const ProfileInputMultiSelection = ({
5555
sx={{ mb: 2 }}
5656
control={
5757
<Checkbox
58-
checked={value.includes(key)}
58+
checked={Array.isArray(value) ? value.includes(key) : false}
5959
onChange={handleChange}
6060
name={key}
6161
/>

0 commit comments

Comments
 (0)