diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-26 05:48:37 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-26 05:48:37 +0800 |
commit | 0515a914e0215bb40f0da4147258544c38cf282d (patch) | |
tree | 9814fa764fdecd95f17614a045568c3b9a5991c9 /packages/instant/public/index.html | |
parent | 23b165669202c1bdf4bd7d7e509b9bfe06e3ef8a (diff) | |
download | dexon-sol-tools-0515a914e0215bb40f0da4147258544c38cf282d.tar dexon-sol-tools-0515a914e0215bb40f0da4147258544c38cf282d.tar.gz dexon-sol-tools-0515a914e0215bb40f0da4147258544c38cf282d.tar.bz2 dexon-sol-tools-0515a914e0215bb40f0da4147258544c38cf282d.tar.lz dexon-sol-tools-0515a914e0215bb40f0da4147258544c38cf282d.tar.xz dexon-sol-tools-0515a914e0215bb40f0da4147258544c38cf282d.tar.zst dexon-sol-tools-0515a914e0215bb40f0da4147258544c38cf282d.zip |
fix: dont fail for mainnet assetData and non-mainnet network
Diffstat (limited to 'packages/instant/public/index.html')
-rw-r--r-- | packages/instant/public/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/public/index.html b/packages/instant/public/index.html index 95216a929..0ee144a28 100644 --- a/packages/instant/public/index.html +++ b/packages/instant/public/index.html @@ -62,8 +62,8 @@ const renderOptionsOverrides = { liquiditySource: liquiditySourceOverride === 'provided' ? [providedOrder] : liquiditySourceOverride, assetData: queryParams.getQueryParamValue('assetData'), - network: +queryParams.getQueryParamValue('network'), - defaultAssetBuyAmount: +queryParams.getQueryParamValue('defaultAssetBuyAmount'), + network: +queryParams.getQueryParamValue('network') || undefined, + defaultAssetBuyAmount: +queryParams.getQueryParamValue('defaultAssetBuyAmount') || undefined, } const renderOptions = Object.assign({}, renderOptionsDefaults, removeUndefined(renderOptionsOverrides)); zeroExInstant.render(renderOptions); |