From 4e954fec046fda77f0db1b54c163d752e30484c9 Mon Sep 17 00:00:00 2001 From: imhson Date: Fri, 8 Sep 2023 13:55:50 +0700 Subject: [PATCH] fix --- src/pages/artist/[artist]/artist.tsx | 1 + src/pages/artist/[artist]/with-api.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/artist/[artist]/artist.tsx b/src/pages/artist/[artist]/artist.tsx index 19315d04..51b2f69e 100644 --- a/src/pages/artist/[artist]/artist.tsx +++ b/src/pages/artist/[artist]/artist.tsx @@ -30,6 +30,7 @@ export default function Artist({ artistDetail }) { const [showMore, setShowMore] = useState(false) const seekhypeBaseUrl = new URL(getConfig().SEEKHYPE_URL).origin if (!artist) return <> + console.log(artist) return ( <> diff --git a/src/pages/artist/[artist]/with-api.tsx b/src/pages/artist/[artist]/with-api.tsx index 275fee26..464c3608 100644 --- a/src/pages/artist/[artist]/with-api.tsx +++ b/src/pages/artist/[artist]/with-api.tsx @@ -21,7 +21,9 @@ const withApi = (Component: React.FC) => (props: any) => { const collections = [] let collectionsData = [] detail.manga_creators.forEach(({ manga }) => - manga.contract_addresses?.forEach((address) => collections.push(address)) + manga.contract_addresses?.forEach((address) => + collections.includes(address) ? null : collections.push(address) + ) ) if (collections.length) { const { data } = await axios.post(`${config.CHAIN_INFO.indexerV2}`, {