update deprecated
parent
c5c3f6dbe5
commit
ebe64b828b
|
@ -58,13 +58,13 @@ export function ProfileScreen({route}: Props) {
|
||||||
data: resolvedDid,
|
data: resolvedDid,
|
||||||
error: resolveError,
|
error: resolveError,
|
||||||
refetch: refetchDid,
|
refetch: refetchDid,
|
||||||
isInitialLoading: isInitialLoadingDid,
|
isLoading: isLoadingDid,
|
||||||
} = useResolveDidQuery(name)
|
} = useResolveDidQuery(name)
|
||||||
const {
|
const {
|
||||||
data: profile,
|
data: profile,
|
||||||
error: profileError,
|
error: profileError,
|
||||||
refetch: refetchProfile,
|
refetch: refetchProfile,
|
||||||
isInitialLoading: isInitialLoadingProfile,
|
isLoading: isLoadingProfile,
|
||||||
} = useProfileQuery({
|
} = useProfileQuery({
|
||||||
did: resolvedDid,
|
did: resolvedDid,
|
||||||
})
|
})
|
||||||
|
@ -84,7 +84,7 @@ export function ProfileScreen({route}: Props) {
|
||||||
}
|
}
|
||||||
}, [profile?.viewer?.blockedBy, resolvedDid])
|
}, [profile?.viewer?.blockedBy, resolvedDid])
|
||||||
|
|
||||||
if (isInitialLoadingDid || isInitialLoadingProfile || !moderationOpts) {
|
if (isLoadingDid || isLoadingProfile || !moderationOpts) {
|
||||||
return (
|
return (
|
||||||
<CenteredView>
|
<CenteredView>
|
||||||
<ProfileHeader
|
<ProfileHeader
|
||||||
|
|
Loading…
Reference in New Issue