Hide FeedSuggestions if empty

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
rtk-query
marcin mikołajczak 2022-07-18 21:10:05 +02:00
rodzic 827146ad17
commit b92cdabd62
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -60,6 +60,9 @@ const SuggestionItem = ({ accountId }: { accountId: string }) => {
const FeedSuggestions = () => {
const intl = useIntl();
const suggestedProfiles = useAppSelector((state) => state.suggestions.items);
const isLoading = useAppSelector((state) => state.suggestions.isLoading);
if (!isLoading && suggestedProfiles.size === 0) return null;
return (
<Card size='lg' variant='rounded'>