Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Change warning on the profile page (#2556)
Browse files Browse the repository at this point in the history
# Summary

Fixes #2513 
![image](https://user-images.githubusercontent.com/622217/158859027-3e67060e-0023-441d-b33b-34cb4b6dfc40.png)
  # To Test

1. Connect to a wallet in Rinkeby/GC
2. Open Profile page
3. Check the warning message. Should say: '**Affiliate** data is only available for **Ethereum**. Please change the network to see it.'
  • Loading branch information
alongoni authored Mar 18, 2022
1 parent 6637a8e commit b081511
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function useFetchListCallback(): (listUrl: string, sendDispatch?: boolean
if (networkLibrary && network.chainId === 1) {
return resolveENSContentHash(ensName, networkLibrary)
}
throw new Error('Could not construct mainnet ENS resolver')
throw new Error('Could not construct Ethereum ENS resolver')
}
return resolveENSContentHash(ensName, library)
},
Expand Down
2 changes: 1 addition & 1 deletion src/custom/pages/Profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function Profile() {
)}
{chainId && chainId !== ChainId.MAINNET && (
<NotificationBanner isVisible level="info" canClose={false}>
Profile data is only available for mainnet. Please change the network to see it.
Affiliate data is only available for Ethereum. Please change the network to see it.
</NotificationBanner>
)}
</>
Expand Down

0 comments on commit b081511

Please sign in to comment.