Skip to content

Commit

Permalink
Using lodashGet for firstName and lastName
Browse files Browse the repository at this point in the history
  • Loading branch information
liyamahendra committed Sep 5, 2022
1 parent 36061f6 commit 9686c11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/settings/Profile/ProfilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class ProfilePage extends Component {
inputID="firstName"
name="fname"
label={this.props.translate('common.firstName')}
defaultValue={currentUserDetails.firstName}
defaultValue={lodashGet(currentUserDetails, 'firstName', '')}
placeholder={this.props.translate('profilePage.john')}
/>
</View>
Expand All @@ -248,7 +248,7 @@ class ProfilePage extends Component {
inputID="lastName"
name="lname"
label={this.props.translate('common.lastName')}
defaultValue={currentUserDetails.lastName}
defaultValue={lodashGet(currentUserDetails, 'lastName', '')}
placeholder={this.props.translate('profilePage.doe')}
/>
</View>
Expand Down

0 comments on commit 9686c11

Please sign in to comment.