File tree 2 files changed +9
-4
lines changed
src/components/onboarding 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ categories:
26
26
},
27
27
{
28
28
id: ' performance' ,
29
- checked: true ,
29
+ checked: false ,
30
30
},
31
31
{
32
32
id: ' profiling' ,
Original file line number Diff line number Diff line change @@ -127,7 +127,12 @@ export function OnboardingOptionButtons({
127
127
} ) {
128
128
const normalizedOptions = initialOptions . map ( option => {
129
129
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
+ } ;
131
136
}
132
137
return option ;
133
138
} ) ;
@@ -137,8 +142,8 @@ export function OnboardingOptionButtons({
137
142
const [ options , setSelectedOptions ] = useState < OnboardingOptionType [ ] > (
138
143
normalizedOptions . map ( option => ( {
139
144
...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 ,
142
147
} ) )
143
148
) ;
144
149
const [ touchedOptions , touchOptions ] = useReducer ( ( ) => true , false ) ;
You can’t perform that action at this time.
0 commit comments