Skip to content

Commit 91513de

Browse files
committed
cleanup hook
1 parent 8253040 commit 91513de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/delegates/hooks/useHasV2VoteDelegate.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,16 @@ import useSWR from 'swr';
1010
import { useContracts } from 'modules/web3/hooks/useContracts';
1111
import { ZERO_ADDRESS } from 'modules/web3/constants/addresses';
1212

13-
type VoteDelegateAddressResponse = {
13+
type HasV1VoteDelegateResponse = {
1414
data?: boolean | undefined;
1515
loading: boolean;
1616
error: Error;
1717
mutate: () => void;
1818
};
1919

2020
// Returns whether the address has a v1 vote delegate contract
21-
export const useHasV1VoteDelegate = (account?: string): VoteDelegateAddressResponse => {
21+
export const useHasV1VoteDelegate = (account?: string): HasV1VoteDelegateResponse => {
2222
const { voteDelegateFactoryOld } = useContracts();
23-
console.log('voteDelegateFactory', voteDelegateFactoryOld);
2423
const { data, error, mutate } = useSWR(account ? `${account}/has-v1-vote-delegate-address` : null, async () => {
2524
if (!account) return false;
2625
const newVdAddress = await voteDelegateFactoryOld.delegates(account);

0 commit comments

Comments
 (0)