From db0b030359590456ca5053f92ee02398bddfe6fd Mon Sep 17 00:00:00 2001
From: Hailey <me@haileyok.com>
Date: Mon, 6 May 2024 12:58:03 -0700
Subject: show spinner when preferences has not loaded yet (#3756)

---
 src/view/com/post-thread/PostThread.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/view/com/post-thread/PostThread.tsx')

diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx
index 69b26ad44..a52818fd1 100644
--- a/src/view/com/post-thread/PostThread.tsx
+++ b/src/view/com/post-thread/PostThread.tsx
@@ -371,11 +371,11 @@ export function PostThread({
     ],
   )
 
-  if (error || !thread) {
+  if (!thread || !preferences || error) {
     return (
       <ListMaybePlaceholder
-        isLoading={(!preferences || !thread) && !error}
-        isError={!!error}
+        isLoading={!error}
+        isError={Boolean(error)}
         noEmpty
         onRetry={refetch}
         errorTitle={error?.title}
-- 
cgit 1.4.1

