File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
components/address-vision Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export const Navbar = () => {
6363 trimmedAddress = trimmedAddress . slice ( 5 ) ;
6464 }
6565
66- if ( trimmedAddress . endsWith ( ".eth" ) || trimmedAddress . endsWith ( ".xyz" ) ) {
66+ if ( trimmedAddress . endsWith ( ".eth" ) || trimmedAddress . endsWith ( ".xyz" ) || trimmedAddress . endsWith ( ".com" ) ) {
6767 router . push ( `/${ trimmedAddress } ` , undefined , { shallow : true } ) ;
6868 setEnsName ( trimmedAddress ) ;
6969 async function getEnsAddress ( ensName : string ) {
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const AddressPage: NextPage<Props> = ({ address }) => {
3737 useEffect ( ( ) => {
3838 const addyOrEns = router . query . address as string ;
3939
40- if ( addyOrEns . endsWith ( ".eth" ) || addyOrEns . endsWith ( ".xyz" ) ) {
40+ if ( addyOrEns . endsWith ( ".eth" ) || addyOrEns . endsWith ( ".xyz" ) || addyOrEns . endsWith ( ".com" ) ) {
4141 setEnsName ( addyOrEns ) ;
4242 } else if ( isAddress ( addyOrEns ) ) {
4343 setResolvedAddress ( addyOrEns ) ;
You can’t perform that action at this time.
0 commit comments