From 407a573296ea344b927a1a74bb4aca3f74147874 Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Tue, 26 Jul 2022 01:11:02 +0100 Subject: [PATCH] Fix for missing asset data --- src/utils/ChainAsset.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/ChainAsset.mjs b/src/utils/ChainAsset.mjs index aa5c358f..608b718f 100644 --- a/src/utils/ChainAsset.mjs +++ b/src/utils/ChainAsset.mjs @@ -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)