diff --git a/native/profile/profile-screen.react.js b/native/profile/profile-screen.react.js --- a/native/profile/profile-screen.react.js +++ b/native/profile/profile-screen.react.js @@ -4,6 +4,7 @@ import { View, Text, Alert, Platform, ScrollView } from 'react-native'; import { logOutActionTypes, logOut } from 'lib/actions/user-actions'; +import { useStringForUser } from 'lib/hooks/ens-cache'; import { preRequestUserStateSelector } from 'lib/selectors/account-selectors'; import { createLoadingStatusSelector } from 'lib/selectors/loading-selectors'; import { accountHasPassword } from 'lib/shared/account-utils'; @@ -68,15 +69,10 @@ +dispatchActionPromise: DispatchActionPromise, +logOut: (preRequestUserState: PreRequestUserState) => Promise, +staffCanSee: boolean, + +stringForUser: ?string, }; class ProfileScreen extends React.PureComponent { - get username() { - return this.props.currentUserInfo && !this.props.currentUserInfo.anonymous - ? this.props.currentUserInfo.username - : undefined; - } - get loggedOutOrLoggingOut() { return ( !this.props.currentUserInfo || @@ -134,7 +130,7 @@ - {this.username} + {this.props.stringForUser}