Skip to content

Commit

Permalink
Drop useless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejSWM committed Feb 28, 2024
1 parent 89df038 commit 28ea31f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/OnboardingPersonalDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ function OnboardingPersonalDetails({currentUserPersonalDetails}: OnboardingPerso
const styles = useThemeStyles();
const {translate} = useLocalize();
const {shouldUseNarrowLayout} = useOnboardingLayout();
const currentUserDetails = currentUserPersonalDetails || {};

const saveAndNavigate = useCallback((values: FormOnyxValues<'displayNameForm'>) => {
PersonalDetails.updateDisplayName(values.firstName.trim(), values.lastName.trim(), {preventGoBack: true});
Expand Down Expand Up @@ -100,7 +99,7 @@ function OnboardingPersonalDetails({currentUserPersonalDetails}: OnboardingPerso
label={translate('common.firstName')}
aria-label={translate('common.firstName')}
role={CONST.ROLE.PRESENTATION}
defaultValue={currentUserDetails?.firstName}
defaultValue={currentUserPersonalDetails?.firstName}
maxLength={CONST.DISPLAY_NAME.MAX_LENGTH}
spellCheck={false}
autoFocus
Expand All @@ -114,7 +113,7 @@ function OnboardingPersonalDetails({currentUserPersonalDetails}: OnboardingPerso
label={translate('common.lastName')}
aria-label={translate('common.lastName')}
role={CONST.ROLE.PRESENTATION}
defaultValue={currentUserDetails?.lastName}
defaultValue={currentUserPersonalDetails?.lastName}
maxLength={CONST.DISPLAY_NAME.MAX_LENGTH}
spellCheck={false}
/>
Expand Down

0 comments on commit 28ea31f

Please sign in to comment.