Remove unneeded check

This commit is contained in:
abefernan
2023-04-27 16:31:49 +02:00
parent c081963dac
commit 2fb359c617
+1 -3
View File
@@ -35,9 +35,6 @@ const thinSpace = "\u202F";
* @return {string} The abbreviated string.
*/
const printableCoin = (coin: Coin, chainInfo: ChainInfo) => {
// null, undefined and this sort of things
if (!coin) return "";
// The display denom from configuration
if (coin.denom === chainInfo.denom) {
const exponent = Number(chainInfo.displayDenomExponent);
@@ -168,6 +165,7 @@ const explorerLinkAccount = (link: string, address: string) => {
};
export {
capitalizeFirstLetter,
ellideMiddle,
printableCoin,
printableCoins,