diff options
author | dan <dan.abramov@gmail.com> | 2024-09-15 20:14:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 12:14:46 -0700 |
commit | d6c11a723195e6158db6c4da9df172fb1acfecc0 (patch) | |
tree | aa7675ed8ca412ff028cc57b938b9a50621bc472 /src/view/com/post-thread/PostQuotes.tsx | |
parent | 55da2704d88f6e0de5ba946a734b84a697efb4d0 (diff) | |
download | voidsky-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.tsx | 8 |
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} /> ) |