Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Sep 8, 2023
1 parent 054e607 commit 4e954fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pages/artist/[artist]/artist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
<HeadComponent title={`Sunday | Punkga.me`} />
Expand Down
4 changes: 3 additions & 1 deletion src/pages/artist/[artist]/with-api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ const withApi = (Component: React.FC<any>) => (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}`, {
Expand Down

0 comments on commit 4e954fe

Please sign in to comment.