Skip to content

Commit c2e0de9

Browse files
committed
Fix: Empty domain in profile header when wallet only holds subs
1 parent e784bad commit c2e0de9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/screens/Profile/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,11 @@ export const ProfileScreen = ({ owner }: { owner?: string }) => {
188188
<ScrollView showsHorizontalScrollIndicator={false}>
189189
<ProfileBlock
190190
owner={owner!}
191-
domain={favorite.result?.reverse || domains?.result?.[0]?.domain!}
191+
domain={
192+
favorite.result?.reverse ||
193+
domains?.result?.[0]?.domain! ||
194+
subdomains?.result?.[0]?.subdomain!
195+
}
192196
picRecord={picRecord}
193197
isPicValid={isCurrentPicValid}
194198
onNewPicUploaded={() => {

0 commit comments

Comments
 (0)