Check number enabling 0

This commit is contained in:
abefernan 2024-07-11 10:54:54 +02:00
parent 2fa20005c7
commit 1e4dcfab2e
No known key found for this signature in database

View File

@ -27,7 +27,7 @@ export const isChainInfoFilled = (chain: Partial<ChainInfo>): chain is ChainInfo
chain.denom &&
chain.displayDenom &&
Number.isSafeInteger(chain.displayDenomExponent) &&
chain.displayDenomExponent && // Check not needed but narrows next line's type
typeof chain.displayDenomExponent === "number" &&
chain.displayDenomExponent >= 0 &&
chain.assets?.length &&
chain.gasPrice &&