From 81b5bae6f61e739d2089a1c80fc438f8170f6039 Mon Sep 17 00:00:00 2001 From: Corban Riley Date: Wed, 15 May 2024 13:54:25 -0400 Subject: [PATCH] Fixing console log of errors in next example --- examples/next/src/app/components/Connected.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/next/src/app/components/Connected.tsx b/examples/next/src/app/components/Connected.tsx index b3468219..3e4c90ec 100644 --- a/examples/next/src/app/components/Connected.tsx +++ b/examples/next/src/app/components/Connected.tsx @@ -54,7 +54,9 @@ export const Connected = () => { }, [pendingFeeOptionConfirmation]) useEffect(() => { - console.log(error?.message) + if (error?.message) { + console.log(error?.message) + } }, [error]) const chainId = useChainId()