Skip to content

Commit

Permalink
HOTFIX: adding missing reutrn
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Sep 5, 2023
1 parent 61ddeb1 commit 9068c00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/refactor/helpers/ethers.ts
Expand Up @@ -7,7 +7,7 @@ import { publicClientToProvider, walletClientToSigner } from './wagmi';
export const useEthersProvider = (): Provider | undefined => {
const publicClient = usePublicClient();
const provider = useMemo(() => {
if (publicClient) publicClientToProvider(publicClient);
if (publicClient) return publicClientToProvider(publicClient);
return undefined;
}, [publicClient]);

Expand All @@ -17,7 +17,7 @@ export const useEthersProvider = (): Provider | undefined => {
export const useEthersSigner = () => {
const { data: walletClient, isLoading, error } = useWalletClient();
const signer = useMemo(() => {
if (walletClient) walletClientToSigner(walletClient);
if (walletClient) return walletClientToSigner(walletClient);
return undefined;
}, [walletClient]);

Expand Down

0 comments on commit 9068c00

Please sign in to comment.