Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix token icon not updating properly
Fixes DefiLlama#1450 Update the token icon URL handling and validation in `components/RPCList/index.js`. * **Add icon URL validation**: Add a function `isValidIconUrl` to check if the icon URL is valid before displaying it. * **Set icon URL**: Define the icon URL using `chain.chainSlug`. * **State management**: Add state `validIconUrl` to manage the validity of the icon URL. * **Effect hook**: Use `useEffect` to validate the icon URL and update the state accordingly. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/DefiLlama/chainlist/issues/1450?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information