diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-12-04 09:52:44 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-12-04 09:52:44 +0800 |
commit | d12b99883bbf73575cd2e14ebba98b1ea1934004 (patch) | |
tree | 784592d5a7d9034496cfedafa1732d5046d5af8c /packages/instant/src/redux | |
parent | 1498e013d083ed3815f5d5ea2de93a848161ed07 (diff) | |
parent | a1e985a1cac46ecbc54c7ef5b846fb5faf2bede2 (diff) | |
download | dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.tar dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.tar.gz dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.tar.bz2 dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.tar.lz dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.tar.xz dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.tar.zst dexon-sol-tools-d12b99883bbf73575cd2e14ebba98b1ea1934004.zip |
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/website/instant-configurator
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r-- | packages/instant/src/redux/async_data.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/redux/async_data.ts b/packages/instant/src/redux/async_data.ts index 18f671cd7..c67b222d1 100644 --- a/packages/instant/src/redux/async_data.ts +++ b/packages/instant/src/redux/async_data.ts @@ -32,7 +32,8 @@ export const asyncData = { const assetBuyer = providerState.assetBuyer; try { const assetDatas = await assetBuyer.getAvailableAssetDatasAsync(); - const assets = assetUtils.createAssetsFromAssetDatas(assetDatas, assetMetaDataMap, network); + const deduplicatedAssetDatas = _.uniq(assetDatas); + const assets = assetUtils.createAssetsFromAssetDatas(deduplicatedAssetDatas, assetMetaDataMap, network); dispatch(actions.setAvailableAssets(assets)); } catch (e) { const errorMessage = 'Could not find any assets'; |