Uniswap / v3-info

Interface for Uniswap V3 analytics. 📊
https://info.uniswap.org/#/
GNU General Public License v3.0
382 stars 305 forks source link

Fix: Blank page when navigating from the tokens page #305

Open nashidahmed opened 10 months ago

nashidahmed commented 10 months ago

This PR fixes the following issue.

Issue

When the user navigates to a specific token (Eg. Ether) from the tokens page, the url shows 'tokens' twice. While on the default network (Ethereum) it still displays the token page for the token, on a different network (Eg. Optimism), a blank page is shown to the user.

Steps to reproduce

  1. Change the network from Ethereum to any other network (Eg. Optimism)
  2. Go to the tokens page
  3. Click on a token to view the token details (Eg. Wrapped Ether)
  4. A blank page is shown to the user.

The below screenshot is when navigating to a specific token on the Ethereum network from tokens page (The url shows 'tokens' twice but still displays the token details)

Ethereum network token page screenshot

The below screenshot is when navigating from tokens page on other networks (The page breaks and a blank page is shown)

Optimism network token page screenshot