Merge pull request #3295 from poanetwork/vb-token-instance-page-fix

Token instance: check if external_url is not null before trimming
pull/3297/head
Victor Baranov 4 years ago committed by GitHub
commit a3282e8af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/block_scout_web/lib/block_scout_web/views/tokens/instance/overview_view.ex

@ -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

@ -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

Loading…
Cancel
Save