From 0bd202eda590b67e40e1acd1a97ca9d8abc53e0f Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Mon, 18 Mar 2019 15:40:23 +0300 Subject: [PATCH] fix usd value on address page --- .../templates/address/_balance_card.html.eex | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address/_balance_card.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address/_balance_card.html.eex index 09c0427982..3a2cbedff1 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address/_balance_card.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address/_balance_card.html.eex @@ -4,17 +4,13 @@

<%= gettext "Balance" %>

<%= balance(@address) %>

- <%= unless match?({:pending, _}, @coin_balance_status) do %> + <%= if !match?({:pending, _}, @coin_balance_status) && !empty_exchange_rate?(@exchange_rate) do %> data-usd-exchange-rate="<%= @exchange_rate.usd_value %>"> - <% end %> - <% if !empty_exchange_rate?(@exchange_rate) do %> (@ /<%= gettext("Ether") %>) - <% end %>
<% end %>