Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3492085
D6422.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6422.diff
View Options
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 @@
<li>
<p className={css.logoutContainer}>
<span className={css.logoutLabel}>{'Logged in as '}</span>
- <span className={css.username}>{username}</span>
+ <span className={css.username}>{stringForUser}</span>
</p>
<Button variant="text" onClick={logOutUser}>
<p className={css.buttonText}>Log out</p>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 10:07 PM (21 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2678987
Default Alt Text
D6422.diff (1 KB)
Attached To
Mode
D6422: [web] Show your ENS name in AccountSettings
Attached
Detach File
Event Timeline
Log In to Comment