aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared/src/ts/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-08 23:19:39 +0800
committerFabio Berger <me@fabioberger.com>2018-03-08 23:19:39 +0800
commit8057f4a678f5e4c00241ec9b15bd9d4dfc3588df (patch)
treead08f11e6e2ac0d8fea0708652e3defe3ad89df6 /packages/react-shared/src/ts/utils
parentf9ec8a0828b7f75276491e496a4ae62e5301a6f3 (diff)
downloaddexon-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.ts2
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;