diff options
author | Hailey <me@haileyok.com> | 2024-05-06 12:58:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 20:58:03 +0100 |
commit | db0b030359590456ca5053f92ee02398bddfe6fd (patch) | |
tree | 3b655037837e684cc24133e578bc95af55db6aa6 /src/view/com/post-thread/PostThread.tsx | |
parent | c33c3b7d1e44037d3370da0ac60926293bf8a158 (diff) | |
download | voidsky-db0b030359590456ca5053f92ee02398bddfe6fd.tar.zst |
show spinner when preferences has not loaded yet (#3756)
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 6 |
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} |