Fix Bad messages in Library Appbar search (#70)
This commit is contained in:
@@ -53,9 +53,10 @@ export default function LibraryMangaGrid(props: IMangaGridProps) {
|
|||||||
mangas, isLoading, hasNextPage, lastPageNum, setLastPageNum, message,
|
mangas, isLoading, hasNextPage, lastPageNum, setLastPageNum, message,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const { active } = useLibraryOptions();
|
const { active, query } = useLibraryOptions();
|
||||||
const filteredManga = filterManga(mangas);
|
const filteredManga = filterManga(mangas);
|
||||||
const showFilteredOutMessage = active && filteredManga.length === 0 && mangas.length > 0;
|
const showFilteredOutMessage = (active || query)
|
||||||
|
&& filteredManga.length === 0 && mangas.length > 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MangaGrid
|
<MangaGrid
|
||||||
|
|||||||
Reference in New Issue
Block a user