Page MenuHomePhabricator

D6422.id21485.diff
No OneTemporary

D6422.id21485.diff

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

Mime Type
text/plain
Expires
Sun, Dec 22, 7:31 AM (6 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2689831
Default Alt Text
D6422.id21485.diff (1 KB)

Event Timeline