Skip to content

Commit

Permalink
Fix ProfileWidget name display
Browse files Browse the repository at this point in the history
  • Loading branch information
moysa committed Sep 4, 2023
1 parent 1fdb64a commit 5cb6793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ProfileWidget/ProfileWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { hexToNpub } from '../../lib/keys';

import styles from './ProfileWidget.module.scss';
import { hookForDev } from '../../lib/devTools';
import { userName } from '../../stores/profile';

const ProfileWidget: Component<{ id?: string }> = (props) => {

Expand All @@ -25,7 +26,7 @@ const ProfileWidget: Component<{ id?: string }> = (props) => {
/>
</div>
<div class={styles.userInfo}>
<div class={styles.userName}>{activeUser()?.name || hexToNpub(account?.publicKey)}</div>
<div class={styles.userName}>{userName(activeUser())}</div>
<div class={styles.userVerification}>
{trimVerification(activeUser()?.nip05)[1]}
</div>
Expand Down

0 comments on commit 5cb6793

Please sign in to comment.