about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-01-29 18:37:15 -0800
committerHailey <me@haileyok.com>2024-01-29 18:37:15 -0800
commit65e349ee96d74e1792da7a336506f72278eed231 (patch)
tree59984302b78eb27c0d4101cdeeae94aad31391dc /src
parentdd3229d9005dc9c10aac839bf48de8cb11ead3c7 (diff)
downloadvoidsky-65e349ee96d74e1792da7a336506f72278eed231.tar.zst
use `isLoading` for whether to show no profile header
Diffstat (limited to 'src')
-rw-r--r--src/view/com/modals/ProfilePreview.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/modals/ProfilePreview.tsx b/src/view/com/modals/ProfilePreview.tsx
index 77e68db70..3de1db446 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 (
       <CenteredView style={[pal.view, s.flex1]}>
         <ProfileHeader