Skip to content

Commit c09d2b1

Browse files
committed
fix display name/name
1 parent 75b018a commit c09d2b1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/pages/Index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const Index = () => {
155155
await createCashuWallet();
156156
await publishEvent({
157157
kind: 0,
158-
content: JSON.stringify({ name: fakeName, display_name: fakeName }),
158+
content: JSON.stringify({ name: fakeName }),
159159
});
160160
} catch {
161161
// fallthrough

src/pages/Profile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ function UserGroupsList({
406406
const isCurrentUser = user && profileUserPubkey === user.pubkey;
407407
const profileAuthor = useAuthor(profileUserPubkey);
408408
const profileMetadata = profileAuthor.data?.metadata;
409-
const profileDisplayName = profileMetadata?.display_name || profileMetadata?.name || profileUserPubkey.slice(0, 8);
409+
const profileDisplayName = profileMetadata?.name || profileUserPubkey.slice(0, 8);
410410

411411
if (isLoading) {
412412
return (
@@ -1031,7 +1031,7 @@ export default function Profile() {
10311031

10321032
const metadata = author.data?.metadata;
10331033
const displayName = metadata?.name || pubkey?.slice(0, 8) || "";
1034-
const displayNameFull = metadata?.display_name || displayName;
1034+
const displayNameFull = displayName;
10351035
const profileImage = metadata?.picture;
10361036
const about = metadata?.about;
10371037
const website = metadata?.website;

0 commit comments

Comments
 (0)