about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostQuotes.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-09-15 20:14:46 +0100
committerGitHub <noreply@github.com>2024-09-15 12:14:46 -0700
commitd6c11a723195e6158db6c4da9df172fb1acfecc0 (patch)
treeaa7675ed8ca412ff028cc57b938b9a50621bc472 /src/view/com/post-thread/PostQuotes.tsx
parent55da2704d88f6e0de5ba946a734b84a697efb4d0 (diff)
downloadvoidsky-d6c11a723195e6158db6c4da9df172fb1acfecc0.tar.zst
Fix wrong empty state for liked by (#5343)
Diffstat (limited to 'src/view/com/post-thread/PostQuotes.tsx')
-rw-r--r--src/view/com/post-thread/PostQuotes.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostQuotes.tsx b/src/view/com/post-thread/PostQuotes.tsx
index 48c8a69ef..6115ae584 100644
--- a/src/view/com/post-thread/PostQuotes.tsx
+++ b/src/view/com/post-thread/PostQuotes.tsx
@@ -97,11 +97,17 @@ export function PostQuotes({uri}: {uri: string}) {
     }
   }, [isFetchingNextPage, hasNextPage, isError, fetchNextPage])
 
-  if (isLoadingUri || isLoadingQuotes || isError) {
+  if (quotes.length < 1) {
     return (
       <ListMaybePlaceholder
         isLoading={isLoadingUri || isLoadingQuotes}
         isError={isError}
+        emptyType="results"
+        emptyTitle={_(msg`No quotes yet`)}
+        emptyMessage={_(
+          msg`Nobody has quoted this yet. Maybe you should be the first!`,
+        )}
+        errorMessage={cleanError(resolveError || error)}
         sideBorders={false}
       />
     )