use isLoading
for whether to show no profile header
This commit is contained in:
parent
dd3229d900
commit
65e349ee96
1 changed files with 2 additions and 2 deletions
|
@ -27,12 +27,12 @@ export function Component({did}: {did: string}) {
|
|||
data: profile,
|
||||
error: profileError,
|
||||
refetch: refetchProfile,
|
||||
isFetching: isFetchingProfile,
|
||||
isLoading,
|
||||
} = useProfileQuery({
|
||||
did: did,
|
||||
})
|
||||
|
||||
if (isFetchingProfile || !moderationOpts) {
|
||||
if (isLoading || !moderationOpts) {
|
||||
return (
|
||||
<CenteredView style={[pal.view, s.flex1]}>
|
||||
<ProfileHeader
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue