=== null
This commit is contained in:
parent
b97226a184
commit
10358ff4be
@ -7,7 +7,7 @@ import isUndefined from '@polkadot/util/is/undefined';
|
||||
const re = new RegExp('(dev|loc)', 'i');
|
||||
|
||||
export default function isTestChain (chain?: string): boolean {
|
||||
if (isUndefined(chain)) {
|
||||
if (isUndefined(chain) || chain === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ import BN from 'bn.js';
|
||||
const NUMBER_REGEX = new RegExp('(\\d+?)(?=(\\d{3})+(?!\\d)|$)', 'g');
|
||||
|
||||
export default function numberFormat (value?: BN | number): string {
|
||||
if (value === undefined) {
|
||||
if (value === undefined || value === null) {
|
||||
return '0';
|
||||
}
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ import isUndefined from '@polkadot/util/is/undefined';
|
||||
const re = new RegExp('(poc-1)', 'i');
|
||||
|
||||
export default function shouldUseLatestChain (chain?: string): boolean {
|
||||
if (isUndefined(chain)) {
|
||||
if (isUndefined(chain) || chain === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user