diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-02 04:10:51 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-02 04:10:51 +0800 |
commit | b55ba3a31823699fa2460fad6fd22b913c38c946 (patch) | |
tree | a3ce34b73187518f106894f9eeb35d6a56f065cf /packages/instant/public/index.html | |
parent | 3f918622bcce21ba104e0f13e71247796345ab0f (diff) | |
download | dexon-0x-contracts-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.gz dexon-0x-contracts-b55ba3a31823699fa2460fad6fd22b913c38c946.tar.zst dexon-0x-contracts-b55ba3a31823699fa2460fad6fd22b913c38c946.zip |
feat: add states to the erc20 input for no assets or only 1 asset
Diffstat (limited to 'packages/instant/public/index.html')
-rw-r--r-- | packages/instant/public/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/public/index.html b/packages/instant/public/index.html index 74975678a..1c08aa5a1 100644 --- a/packages/instant/public/index.html +++ b/packages/instant/public/index.html @@ -59,13 +59,13 @@ assetData: '0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498', } const orderSourceOverride = queryParams.getQueryParamValue('orderSource'); + const availableAssetDatasString = queryParams.getQueryParamValue('availableAssetDatas'); const renderOptionsOverrides = { orderSource: orderSourceOverride === 'provided' ? [providedOrder] : orderSourceOverride, - assetData: queryParams.getQueryParamValue('assetData'), networkId: +queryParams.getQueryParamValue('networkId') || undefined, defaultAssetBuyAmount: +queryParams.getQueryParamValue('defaultAssetBuyAmount') || undefined, - availableAssetIdentifiers: JSON.parse(queryParams.getQueryParamValue('availableAssetIdentifiers') || '[]'), - defaultSelectedAssetIdentifier: queryParams.getQueryParamValue('defaultSelectedAssetIdentifier'), + availableAssetDatas: availableAssetDatasString ? JSON.parse(availableAssetDatasString) : undefined, + defaultSelectedAssetData: queryParams.getQueryParamValue('defaultSelectedAssetData'), } const renderOptions = Object.assign({}, renderOptionsDefaults, removeUndefined(renderOptionsOverrides)); zeroExInstant.render(renderOptions); |