Skip to content

Commit

Permalink
Fix: Empty domain in profile header when wallet only holds subs
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrdev committed Feb 7, 2024
1 parent e784bad commit c2e0de9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/screens/Profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,11 @@ export const ProfileScreen = ({ owner }: { owner?: string }) => {
<ScrollView showsHorizontalScrollIndicator={false}>
<ProfileBlock
owner={owner!}
domain={favorite.result?.reverse || domains?.result?.[0]?.domain!}
domain={
favorite.result?.reverse ||
domains?.result?.[0]?.domain! ||
subdomains?.result?.[0]?.subdomain!
}
picRecord={picRecord}
isPicValid={isCurrentPicValid}
onNewPicUploaded={() => {
Expand Down

0 comments on commit c2e0de9

Please sign in to comment.