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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user