aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant')
-rw-r--r--packages/instant/src/util/asset_data.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/instant/src/util/asset_data.ts b/packages/instant/src/util/asset_data.ts
index 4f3db8447..f7c5b78cd 100644
--- a/packages/instant/src/util/asset_data.ts
+++ b/packages/instant/src/util/asset_data.ts
@@ -1,14 +1,16 @@
+import * as _ from 'lodash';
+
import { AssetProxyId } from '@0xproject/types';
import { assetMetaData } from '../data/asset_meta_data';
export const assetDataUtil = {
bestNameForAsset: (assetData: string | undefined, defaultString: string) => {
- if (assetData === undefined) {
+ if (_.isUndefined(assetData)) {
return defaultString;
}
const metaData = assetMetaData[assetData];
- if (metaData === undefined) {
+ if (_.isUndefined(metaData)) {
return defaultString;
}
if (metaData.assetProxyId === AssetProxyId.ERC20) {