Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiceli committed Sep 26, 2024
1 parent 80536b4 commit 8b9d014
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pages/OnboardingPurpose/BaseOnboardingPurpose.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@ function BaseOnboardingPurpose({shouldUseNativeStyles, shouldEnableMaxHeight, ro

const theme = useTheme();
const [onboardingErrorMessage, onboardingErrorMessageResult] = useOnyx(ONYXKEYS.ONBOARDING_ERROR_MESSAGE);
const customChoices = useOnyx(ONYXKEYS.ONBOARDING_CUSTOM_CHOICES)[0] || [];

const onboardingChoices = customChoices.length > 0
? Object.values(CONST.SELECTABLE_ONBOARDING_CHOICES).filter(choice => customChoices.includes(choice))
: Object.values(CONST.SELECTABLE_ONBOARDING_CHOICES)

const maxHeight = shouldEnableMaxHeight ? windowHeight : undefined;
const paddingHorizontal = onboardingIsMediumOrLargerScreenWidth ? styles.ph8 : styles.ph5;

const customChoices = useOnyx(ONYXKEYS.ONBOARDING_CUSTOM_CHOICES)[0] ?? [];
const onboardingChoices = customChoices.length > 0 ? Object.values(CONST.SELECTABLE_ONBOARDING_CHOICES).filter((choice) => customChoices.includes(choice)) : Object.values(CONST.SELECTABLE_ONBOARDING_CHOICES);

Check failure on line 53 in src/pages/OnboardingPurpose/BaseOnboardingPurpose.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Insert `⏎·······`

Check failure on line 53 in src/pages/OnboardingPurpose/BaseOnboardingPurpose.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Insert `⏎·······`

const menuItems: MenuItemProps[] = onboardingChoices.map((choice) => {
const translationKey = `onboarding.purpose.${choice}` as const;
return {
Expand Down

0 comments on commit 8b9d014

Please sign in to comment.