diff options
author | Fabio Berger <me@fabioberger.com> | 2019-01-12 00:14:12 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2019-01-12 00:14:12 +0800 |
commit | 98579300c1f78d8c360fa960cc73ffacb1012e91 (patch) | |
tree | ab29e15e580820ad76dafa088926bec9998bb51c /packages/instant/src/util/asset.ts | |
parent | 6fb2721294f5d25edb76cb6f9b34eb3e07212950 (diff) | |
parent | 2cf57a48dd2857dd5cf2f31f4c60dd47ae4d34a5 (diff) | |
download | dexon-sol-tools-98579300c1f78d8c360fa960cc73ffacb1012e91.tar dexon-sol-tools-98579300c1f78d8c360fa960cc73ffacb1012e91.tar.gz dexon-sol-tools-98579300c1f78d8c360fa960cc73ffacb1012e91.tar.bz2 dexon-sol-tools-98579300c1f78d8c360fa960cc73ffacb1012e91.tar.lz dexon-sol-tools-98579300c1f78d8c360fa960cc73ffacb1012e91.tar.xz dexon-sol-tools-98579300c1f78d8c360fa960cc73ffacb1012e91.tar.zst dexon-sol-tools-98579300c1f78d8c360fa960cc73ffacb1012e91.zip |
merge development
Diffstat (limited to 'packages/instant/src/util/asset.ts')
-rw-r--r-- | packages/instant/src/util/asset.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/instant/src/util/asset.ts b/packages/instant/src/util/asset.ts index b009a327f..709561dbc 100644 --- a/packages/instant/src/util/asset.ts +++ b/packages/instant/src/util/asset.ts @@ -104,9 +104,8 @@ export const assetUtils = { return assetDataGroupIfExists[Network.Mainnet]; }, getERC20AssetsFromAssets: (assets: Asset[]): ERC20Asset[] => { - const erc20sOrUndefined = _.map( - assets, - asset => (asset.metaData.assetProxyId === AssetProxyId.ERC20 ? (asset as ERC20Asset) : undefined), + const erc20sOrUndefined = _.map(assets, asset => + asset.metaData.assetProxyId === AssetProxyId.ERC20 ? (asset as ERC20Asset) : undefined, ); return _.compact(erc20sOrUndefined); }, |