diff --git a/CHANGELOG.md b/CHANGELOG.md index 06192e5165..18bd443936 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - [#3261](https://github.com/poanetwork/blockscout/pull/3261) - Bridged tokens table ### Fixes +- [#3295](https://github.com/poanetwork/blockscout/pull/3295) - Token instance: check if external_url is not null before trimming - [#3291](https://github.com/poanetwork/blockscout/pull/3291) - Support unlimited number of external rewards in block - [#3290](https://github.com/poanetwork/blockscout/pull/3290) - Eliminate protocol Jason.Encoder not implemented for... error - [#3284](https://github.com/poanetwork/blockscout/pull/3284) - Fix fetch_coin_balance query: coin balance delta diff --git a/apps/block_scout_web/lib/block_scout_web/views/tokens/instance/overview_view.ex b/apps/block_scout_web/lib/block_scout_web/views/tokens/instance/overview_view.ex index c7581058ee..9281fff643 100644 --- a/apps/block_scout_web/lib/block_scout_web/views/tokens/instance/overview_view.ex +++ b/apps/block_scout_web/lib/block_scout_web/views/tokens/instance/overview_view.ex @@ -48,7 +48,7 @@ defmodule BlockScoutWeb.Tokens.Instance.OverviewView do external_url(nil) end - if String.trim(result) == "", do: external_url(nil), else: result + if !result || (result && String.trim(result)) == "", do: external_url(nil), else: result end def total_supply_usd(token) do