diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-08 23:19:39 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-08 23:19:39 +0800 |
commit | 8057f4a678f5e4c00241ec9b15bd9d4dfc3588df (patch) | |
tree | ad08f11e6e2ac0d8fea0708652e3defe3ad89df6 /packages/react-shared/src/ts/utils | |
parent | f9ec8a0828b7f75276491e496a4ae62e5301a6f3 (diff) | |
download | dexon-0x-contracts-8057f4a678f5e4c00241ec9b15bd9d4dfc3588df.tar dexon-0x-contracts-8057f4a678f5e4c00241ec9b15bd9d4dfc3588df.tar.gz dexon-0x-contracts-8057f4a678f5e4c00241ec9b15bd9d4dfc3588df.tar.bz2 dexon-0x-contracts-8057f4a678f5e4c00241ec9b15bd9d4dfc3588df.tar.lz dexon-0x-contracts-8057f4a678f5e4c00241ec9b15bd9d4dfc3588df.tar.xz dexon-0x-contracts-8057f4a678f5e4c00241ec9b15bd9d4dfc3588df.tar.zst dexon-0x-contracts-8057f4a678f5e4c00241ec9b15bd9d4dfc3588df.zip |
Add back strict null checks to react-shared package and fix issues
Diffstat (limited to 'packages/react-shared/src/ts/utils')
-rw-r--r-- | packages/react-shared/src/ts/utils/utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/react-shared/src/ts/utils/utils.ts b/packages/react-shared/src/ts/utils/utils.ts index ebe896bbc..9e848392f 100644 --- a/packages/react-shared/src/ts/utils/utils.ts +++ b/packages/react-shared/src/ts/utils/utils.ts @@ -30,7 +30,7 @@ export const utils = { const id = name.replace(/ /g, '-'); return id; }, - getEtherScanLinkIfExists(addressOrTxHash: string, networkId: number, suffix: EtherscanLinkSuffixes): string { + getEtherScanLinkIfExists(addressOrTxHash: string, networkId: number, suffix: EtherscanLinkSuffixes): string|undefined { const networkName = constants.NETWORK_NAME_BY_ID[networkId]; if (_.isUndefined(networkName)) { return undefined; |