use `isLoading` for whether to show no profile header
parent
dd3229d900
commit
65e349ee96
|
@ -27,12 +27,12 @@ export function Component({did}: {did: string}) {
|
||||||
data: profile,
|
data: profile,
|
||||||
error: profileError,
|
error: profileError,
|
||||||
refetch: refetchProfile,
|
refetch: refetchProfile,
|
||||||
isFetching: isFetchingProfile,
|
isLoading,
|
||||||
} = useProfileQuery({
|
} = useProfileQuery({
|
||||||
did: did,
|
did: did,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (isFetchingProfile || !moderationOpts) {
|
if (isLoading || !moderationOpts) {
|
||||||
return (
|
return (
|
||||||
<CenteredView style={[pal.view, s.flex1]}>
|
<CenteredView style={[pal.view, s.flex1]}>
|
||||||
<ProfileHeader
|
<ProfileHeader
|
||||||
|
|
Loading…
Reference in New Issue