Skip to content

Commit 59b3ca4

Browse files
committed
allow empty option id for steps
1 parent 5b344ef commit 59b3ca4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/onboarding/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ export function OnboardingOption({
151151
hideForThisOption?: boolean;
152152
isStep?: boolean;
153153
}) {
154-
validateOptionIds([{id: optionId}]);
154+
// Allow not passing an optionId when isStep is true
155+
if (!isStep || optionId) {
156+
validateOptionIds([{id: optionId}]);
157+
}
155158
const className = [hideForThisOption ? 'hidden' : '', isStep ? 'onboarding-step' : '']
156159
.filter(Boolean)
157160
.join(' ');

0 commit comments

Comments
 (0)