From 9faef19da04471357991b42509eb431b400b5afd Mon Sep 17 00:00:00 2001 From: Yash Goyal Date: Thu, 16 May 2024 18:42:01 +0530 Subject: [PATCH] fixed a bug --- packages/nextjs/contexts/AuthContext.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/nextjs/contexts/AuthContext.tsx b/packages/nextjs/contexts/AuthContext.tsx index aa800fa..03c44cb 100644 --- a/packages/nextjs/contexts/AuthContext.tsx +++ b/packages/nextjs/contexts/AuthContext.tsx @@ -41,12 +41,8 @@ export default function AuthContextProvider({ children }: { children: React.Reac useEffect(() => { setKeyPair(null); - if (!address) { - return; - } - generateKeypair(); - }, [address, generateKeypair]); + }, [generateKeypair]); const { data: isRegistered, refetch: refetchIsRegistered } = useScaffoldContractRead({ contractName: "MACIWrapper",