diff --git a/web/settings/account-settings.react.js b/web/settings/account-settings.react.js --- a/web/settings/account-settings.react.js +++ b/web/settings/account-settings.react.js @@ -4,6 +4,7 @@ import { logOut, logOutActionTypes } from 'lib/actions/user-actions'; import { useModalContext } from 'lib/components/modal-provider.react'; +import { useStringForUser } from 'lib/hooks/ens-cache'; import { preRequestUserStateSelector } from 'lib/selectors/account-selectors'; import { accountHasPassword } from 'lib/shared/account-utils.js'; import { @@ -53,10 +54,10 @@ ); const currentUserInfo = useSelector(state => state.currentUserInfo); + const stringForUser = useStringForUser(currentUserInfo); if (!currentUserInfo || currentUserInfo.anonymous) { return null; } - const { username } = currentUserInfo; let changePasswordSection; if (isAccountWithPassword) { @@ -81,7 +82,7 @@
{'Logged in as '} - {username} + {stringForUser}