From 41fcfcc5570eafe1f5f579b5ffaf9ae22464b6e4 Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Tue, 4 Oct 2022 12:30:37 +0100 Subject: [PATCH] Handle missing coinGeckoId when suggesting chain --- src/utils/Network.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/Network.mjs b/src/utils/Network.mjs index 7be0eabc..91b77c12 100644 --- a/src/utils/Network.mjs +++ b/src/utils/Network.mjs @@ -167,8 +167,10 @@ class Network { const currency = { coinDenom: this.symbol, coinMinimalDenom: this.denom, - coinDecimals: this.decimals, - coinGeckoId: this.coinGeckoId + coinDecimals: this.decimals + } + if(this.coinGeckoId){ + currency.coinGeckoId = this.coinGeckoId } const data = { rpc: this.rpcUrl,