diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/hero/content.js | 2 | ||||
| -rw-r--r-- | components/manga/chapters.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/hero/content.js b/components/hero/content.js index 1a45860..98ec4a8 100644 --- a/components/hero/content.js +++ b/components/hero/content.js @@ -27,7 +27,7 @@ export default function Content({ ids, section, data }) { // console.log({ left: scrollLeft, right: scrollRight }); const array = data; - let filteredData = array?.filter((item) => item.status !== "Unknown"); + let filteredData = array?.filter((item) => item !== null); return ( <div> <h1 className="px-5 font-karla text-[20px] font-bold">{section}</h1> diff --git a/components/manga/chapters.js b/components/manga/chapters.js index 7997a73..56e07ae 100644 --- a/components/manga/chapters.js +++ b/components/manga/chapters.js @@ -24,7 +24,7 @@ export default function Content({ ids, providers }) { } useEffect(() => { fetchData(); - }, [providers]); + }, [providers, fetchData]); useEffect(() => { // console.log("Data changed:", data); }, [data]); |