From 65e349ee96d74e1792da7a336506f72278eed231 Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 29 Jan 2024 18:37:15 -0800 Subject: [PATCH] use `isLoading` for whether to show no profile header --- src/view/com/modals/ProfilePreview.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/com/modals/ProfilePreview.tsx b/src/view/com/modals/ProfilePreview.tsx index 77e68db7..3de1db44 100644 --- a/src/view/com/modals/ProfilePreview.tsx +++ b/src/view/com/modals/ProfilePreview.tsx @@ -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 (