about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-05-06 12:58:03 -0700
committerGitHub <noreply@github.com>2024-05-06 20:58:03 +0100
commitdb0b030359590456ca5053f92ee02398bddfe6fd (patch)
tree3b655037837e684cc24133e578bc95af55db6aa6
parentc33c3b7d1e44037d3370da0ac60926293bf8a158 (diff)
downloadvoidsky-db0b030359590456ca5053f92ee02398bddfe6fd.tar.zst
show spinner when preferences has not loaded yet (#3756)
-rw-r--r--src/view/com/post-thread/PostThread.tsx6
1 files changed, 3 insertions, 3 deletions
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}