File tree 2 files changed +5
-6
lines changed
components/Basenames/UsernameProfileRenewalModal
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ export default function UsernameProfileRenewalModal({
61
61
setCurrentRenewalStep ( RenewalSteps . Confirm ) ;
62
62
} , [ ] ) ;
63
63
64
+ if ( ! address ) {
65
+ return null ;
66
+ }
67
+
64
68
return (
65
69
< Modal
66
70
isOpen = { isOpen }
Original file line number Diff line number Diff line change 1
- import { useAnalytics } from 'apps/web/contexts/Analytics' ;
2
1
import { useErrors } from 'apps/web/contexts/Errors' ;
3
- import L2ResolverAbi from 'apps/web/src/abis/L2Resolver' ;
4
- import { USERNAME_L2_RESOLVER_ADDRESSES } from 'apps/web/src/addresses/usernames' ;
5
2
import useBasenameChain from 'apps/web/src/hooks/useBasenameChain' ;
6
3
import useCapabilitiesSafe from 'apps/web/src/hooks/useCapabilitiesSafe' ;
7
4
import { useRentPrice } from 'apps/web/src/hooks/useRentPrice' ;
8
5
import useWriteContractsWithLogs from 'apps/web/src/hooks/useWriteContractsWithLogs' ;
9
6
import useWriteContractWithReceipt from 'apps/web/src/hooks/useWriteContractWithReceipt' ;
10
7
import { secondsInYears } from 'apps/web/src/utils/secondsInYears' ;
11
8
import {
12
- formatBaseEthDomain ,
13
9
normalizeEnsDomainName ,
14
10
REGISTER_CONTRACT_ABI ,
15
11
REGISTER_CONTRACT_ADDRESSES ,
16
12
} from 'apps/web/src/utils/usernames' ;
17
13
import { useCallback } from 'react' ;
18
- import { encodeFunctionData , namehash } from 'viem' ;
19
- import { useAccount , useSwitchChain } from 'wagmi' ;
14
+ import { useAccount } from 'wagmi' ;
20
15
21
16
type UseRenewBasenameProps = {
22
17
name : string ;
You can’t perform that action at this time.
0 commit comments