Skip to content

Commit 3749690

Browse files
committed
extra comment
1 parent 8569926 commit 3749690

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/onboarding/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ export function OnboardingOptionButtons({
251251
}
252252
return option;
253253
})
254+
// sort options by their index in OPTION_IDS
255+
// so that the order of the options is consistent
256+
// regardless of how the user passes them in
254257
.sort((a, b) => {
255258
const indexA = OPTION_IDS.indexOf(a.id);
256259
const indexB = OPTION_IDS.indexOf(b.id);

0 commit comments

Comments
 (0)