Replace lodash with built-ins where possible to reduce bundle size (#1766)

* add tslint rule to disallow lodash.isUndefined

* add tslint rule to disallow lodash.isNull

* apply fixes
This commit is contained in:
Xianny
2019-04-10 09:36:32 -07:00
committed by GitHub
parent 49d951b7be
commit 7423028fea
299 changed files with 1249 additions and 1038 deletions

View File

@@ -45,7 +45,7 @@ export const DrawerMenu = (props: DrawerMenuProps) => {
};
const menuItemEntries = _.concat(relayerItemEntry, defaultMenuItemEntries);
const accountState = utils.getAccountState(
props.blockchainIsLoaded && !_.isUndefined(props.blockchain),
props.blockchainIsLoaded && props.blockchain !== undefined,
props.providerType,
props.injectedProviderName,
props.userAddress,