Skip to content

Commit

Permalink
Merge pull request #569 from eco-stake/fix-missing-asset-data
Browse files Browse the repository at this point in the history
Fix for missing asset data
  • Loading branch information
tombeynon authored Jul 26, 2022
2 parents 9f822f3 + 407a573 commit 4c4b65b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/ChainAsset.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function ChainAsset(data) {
const { symbol } = data
const base = data.denom_units.find(el => el.denom === data.base)
const display = data.denom_units.find(el => el.denom === data.display)
const decimals = display.exponent ?? 6
const decimals = display?.exponent ?? 6
const logo_URIs = data.logo_URIs
const image = logo_URIs && (logo_URIs.svg || logo_URIs.png)

Expand Down

0 comments on commit 4c4b65b

Please sign in to comment.