aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/asset.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-12 06:55:32 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-12 06:55:32 +0800
commitee7d6fb3afad313fa699018c727c24db4f2024bd (patch)
tree3cc9a4401b1fe00de897fb354271c5f11d637c9a /packages/instant/src/util/asset.ts
parent286474ca767e955b4f7fca985d3864511fa4dfbb (diff)
downloaddexon-sol-tools-ee7d6fb3afad313fa699018c727c24db4f2024bd.tar.gz
dexon-sol-tools-ee7d6fb3afad313fa699018c727c24db4f2024bd.tar.zst
dexon-sol-tools-ee7d6fb3afad313fa699018c727c24db4f2024bd.zip
Show as 0 when selected
Diffstat (limited to 'packages/instant/src/util/asset.ts')
-rw-r--r--packages/instant/src/util/asset.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/util/asset.ts b/packages/instant/src/util/asset.ts
index 13f84ef74..faaeb7c22 100644
--- a/packages/instant/src/util/asset.ts
+++ b/packages/instant/src/util/asset.ts
@@ -2,6 +2,7 @@ import { AssetBuyerError } from '@0x/asset-buyer';
import { AssetProxyId, ObjectMap } from '@0x/types';
import * as _ from 'lodash';
+import { DEFAULT_UNKOWN_ASSET_NAME } from '../constants';
import { assetDataNetworkMapping } from '../data/asset_data_network_mapping';
import { Asset, AssetMetaData, ERC20Asset, Network, ZeroExInstantError } from '../types';
@@ -71,7 +72,7 @@ export const assetUtils = {
}
return metaData;
},
- bestNameForAsset: (asset?: Asset, defaultName: string = '???'): string => {
+ bestNameForAsset: (asset?: Asset, defaultName: string = DEFAULT_UNKOWN_ASSET_NAME): string => {
if (_.isUndefined(asset)) {
return defaultName;
}