From 9ecff7c850001c20245a756685eda6a37618f0bc Mon Sep 17 00:00:00 2001 From: Juanma Hidalgo Date: Thu, 7 Sep 2023 16:41:18 +0200 Subject: [PATCH] chore: add logs to debug (#346) --- src/ports/nfts/component.ts | 2 ++ src/ports/nfts/utils.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/ports/nfts/component.ts b/src/ports/nfts/component.ts index 8e92c62..1089b87 100644 --- a/src/ports/nfts/component.ts +++ b/src/ports/nfts/component.ts @@ -58,8 +58,10 @@ export function createNFTComponent(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 [] } diff --git a/src/ports/nfts/utils.ts b/src/ports/nfts/utils.ts index 994f94e..1a29687 100644 --- a/src/ports/nfts/utils.ts +++ b/src/ports/nfts/utils.ts @@ -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(', ')}]` )