Skip to content

Commit 5f3d9e1

Browse files
committed
uncheck onboarding options
1 parent 301205e commit 5f3d9e1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/components/onboarding/index.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,12 @@ export function OnboardingOptionButtons({
127127
}) {
128128
const normalizedOptions = initialOptions.map(option => {
129129
if (typeof option === 'string') {
130-
return {id: option, disabled: option === 'error-monitoring'};
130+
return {
131+
id: option,
132+
// error monitoring is always needs to be checked and disabled
133+
disabled: option === 'error-monitoring',
134+
checked: option === 'error-monitoring',
135+
};
131136
}
132137
return option;
133138
});
@@ -137,8 +142,8 @@ export function OnboardingOptionButtons({
137142
const [options, setSelectedOptions] = useState<OnboardingOptionType[]>(
138143
normalizedOptions.map(option => ({
139144
...option,
140-
// default to checked if not excplicitly set
141-
checked: option.checked ?? true,
145+
// default to unchecked if not excplicitly set
146+
checked: option.checked ?? false,
142147
}))
143148
);
144149
const [touchedOptions, touchOptions] = useReducer(() => true, false);

0 commit comments

Comments
 (0)