Skip to content

Commit

Permalink
chore: add logs to debug (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Sep 7, 2023
1 parent 35cf682 commit 9ecff7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ports/nfts/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ export function createNFTComponent<T extends { id: string }>(options: {
})

const data: { data: string[] } = await bannedNames.json()
console.log('banned names: ', data)
return data.data
} catch (error) {
console.error('Error fetching banned names: ', error)
// if there was an error fetching the lists server, return an empty array
return []
}
Expand Down
1 change: 1 addition & 0 deletions src/ports/nfts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export function getFetchQuery(
let wrapWhere = false

if (bannedNames.length) {
console.log('bannedNames inside getFetchQuery: ', bannedNames);
where.push(
`name_not_in: [${bannedNames.map((name) => `"${name}"`).join(', ')}]`
)
Expand Down

0 comments on commit 9ecff7c

Please sign in to comment.