Skip to content

Commit

Permalink
remove console.log and switch to console.error
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-aurele-besner committed May 24, 2024
1 parent 8789d4b commit 1865f61
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web-app/src/pages/api/requestTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const findRequest = async (accountType: AccountType, accountId: string, r
return true
})
.catch((error: FaunaHttpErrorResponseContent) => {
console.log('error', error)
console.error('error', error)
})
}

Expand All @@ -62,7 +62,7 @@ export const saveRequest = async (
})
)
.catch((error: FaunaHttpErrorResponseContent) => {
console.log('error', error)
console.error('error', error)
})
}

Expand Down Expand Up @@ -124,7 +124,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
accountType: AccountType
accountId: string
}
console.log('data', { chainId, address, accountType, accountId })

const rpc = networks.find((network) => network.id === chainId)?.rpcUrls?.default?.http[0]
if (!rpc) throw new Error('Unknown chainId')
Expand Down

0 comments on commit 1865f61

Please sign in to comment.