Merge pull request #4815 from blockscout/vb-check-custom-cap-2

Finalize: check if exists custom_cap property of extended token object before access it
pull/4818/head
Victor Baranov 3 years ago committed by GitHub
commit a3bcd85f0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 2
      apps/block_scout_web/lib/block_scout_web/templates/tokens/overview/_details.html.eex

@ -23,7 +23,7 @@
- [#4579](https://github.com/blockscout/blockscout/pull/4579) - Write contract page: Resize inputs; Improve multiplier selector
### Fixes
- [#4812](https://github.com/blockscout/blockscout/pull/4812) - Check if exists custom_cap property of extended token object before access it
- [#4812](https://github.com/blockscout/blockscout/pull/4812), [#4815](https://github.com/blockscout/blockscout/pull/4815) - Check if exists custom_cap property of extended token object before access it
- [#4810](https://github.com/blockscout/blockscout/pull/4810) - Show `nil` block.size as `N/A bytes`
- [#4801](https://github.com/blockscout/blockscout/pull/4801) - Added clauses and tests for get_total_staked_and_ordered/1
- [#4798](https://github.com/blockscout/blockscout/pull/4798) - Token instance View contract icon Safari fix

@ -106,7 +106,7 @@
<%= if @token.usd_value do %>
<div class="text-uppercase">
<span data-selector="token-supply-usd" data-usd-value="<%= total_supply_usd(@token) %>"></span>
<%= unless @token.custom_cap do %>
<%= unless Map.has_key?(@token, :custom_cap) && @token.custom_cap do %>
|
<span data-selector="token-price" data-token-usd-value="<%= @token.usd_value %>"></span>
<% end %>

Loading…
Cancel
Save