Remove symbol from token columnn for bridged tokens

pull/3261/head
Victor Baranov 4 years ago
parent 3c0dac059e
commit f09bc43945
  1. 14
      apps/block_scout_web/lib/block_scout_web/views/bridged_tokens_view.ex

@ -6,17 +6,7 @@ defmodule BlockScoutWeb.BridgedTokensView do
def decimals?(%Token{decimals: nil}), do: false
def decimals?(%Token{decimals: _}), do: true
def token_display_name(%Token{name: nil, symbol: nil}), do: ""
def token_display_name(%Token{name: nil}), do: ""
def token_display_name(%Token{name: "", symbol: ""}), do: ""
def token_display_name(%Token{name: name, symbol: nil}), do: name
def token_display_name(%Token{name: name, symbol: ""}), do: name
def token_display_name(%Token{name: nil, symbol: symbol}), do: symbol
def token_display_name(%Token{name: "", symbol: symbol}), do: symbol
def token_display_name(%Token{name: name, symbol: symbol}), do: "#{name} (#{symbol})"
def token_display_name(%Token{name: name}), do: name
end

Loading…
Cancel
Save