Skip to content

Commit

Permalink
Fixing console log of errors in next example
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed May 15, 2024
1 parent 43681a0 commit 81b5bae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/next/src/app/components/Connected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export const Connected = () => {
}, [pendingFeeOptionConfirmation])

useEffect(() => {
console.log(error?.message)
if (error?.message) {
console.log(error?.message)
}
}, [error])

const chainId = useChainId()
Expand Down

0 comments on commit 81b5bae

Please sign in to comment.