Skip to content

Commit

Permalink
fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgo0018 committed May 16, 2024
1 parent 35adcdf commit 9faef19
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/nextjs/contexts/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9faef19

Please sign in to comment.