From bb29bdaf8537808e93e8d1b7d227794895bda686 Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Thu, 9 Sep 2021 11:59:30 +0300 Subject: [PATCH] token icon for bridged tokens in search results page fix --- .../lib/block_scout_web/templates/search/_tile.html.eex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/search/_tile.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/search/_tile.html.eex index f8521f34e3..5c0385dca5 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/search/_tile.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/search/_tile.html.eex @@ -13,7 +13,7 @@ data-address-hash="<%= address_hash_checksummed %>" > <%= if System.get_env("DISPLAY_TOKEN_ICONS") === "true" do %> - <% chain_id_for_token_icon = if @result.foreign_chain_id, do: @result.foreign_chain_id, else: System.get_env("CHAIN_ID") %> + <% chain_id_for_token_icon = if @result.foreign_chain_id, do: @result.foreign_chain_id |> Decimal.to_integer() |> to_string(), else: System.get_env("CHAIN_ID") %> <% address_hash = if @result.foreign_token_hash, do: @result.foreign_token_hash, else: @result.address_hash %> <% token_icon_url = Chain.get_token_icon_url_by(chain_id_for_token_icon, address_hash) %>