Skip to content

Commit

Permalink
fix: use email as fallback for user name
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Jun 26, 2024
1 parent bddd2f7 commit b89377e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/components/connections/AlbyConnectionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ function AlbyConnectionCard({ connection }: { connection?: App }) {
<div className="flex flex-col gap-4">
<div className="flex flex-row gap-4 ">
<UserAvatar className="h-14 w-14" />
<div className="flex flex-col">
<div className="text-xl font-semibold">{albyMe?.name}</div>
<div className="flex flex-col justify-center">
<div className="text-xl font-semibold">
{albyMe?.name || albyMe?.email}
</div>
<div className="flex flex-row items-center gap-1 text-sm text-muted-foreground">
<ZapIcon className="w-4 h-4" />
{albyMe?.lightning_address}
Expand Down

0 comments on commit b89377e

Please sign in to comment.