diff --git a/src/components/ProfileWidget/ProfileWidget.tsx b/src/components/ProfileWidget/ProfileWidget.tsx index 329caed..76bf8bc 100644 --- a/src/components/ProfileWidget/ProfileWidget.tsx +++ b/src/components/ProfileWidget/ProfileWidget.tsx @@ -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) => { @@ -25,7 +26,7 @@ const ProfileWidget: Component<{ id?: string }> = (props) => { />
-
{activeUser()?.name || hexToNpub(account?.publicKey)}
+
{userName(activeUser())}
{trimVerification(activeUser()?.nip05)[1]}