From 5cb6793c626f8ec23c2f63ebb685bbe9612c1a3a Mon Sep 17 00:00:00 2001 From: Bojan Mojsilovic Date: Mon, 4 Sep 2023 14:42:15 +0200 Subject: [PATCH] Fix ProfileWidget name display --- src/components/ProfileWidget/ProfileWidget.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]}