Skip to content

Commit

Permalink
Fix error messaging in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Oct 1, 2024
1 parent 984222d commit 9a4c4ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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 @@ -42,7 +42,9 @@ export const Connected = () => {
}, [pendingFeeOptionConfirmation])

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

const chainId = useChainId()
Expand Down
2 changes: 1 addition & 1 deletion examples/react/src/components/Connected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const Connected = () => {

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

Expand Down

0 comments on commit 9a4c4ec

Please sign in to comment.