diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-12-06 04:16:55 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:06:35 +0800 |
commit | 7ba47c47bb33f9b7569a744600169d0cec2fee18 (patch) | |
tree | 0bf083001eebae5a15b86055a89d683aba6f8fb0 /packages/instant | |
parent | f8f3a3b3cc1dd92b5ba28ae46d10f61d9e589eb5 (diff) | |
download | dexon-sol-tools-7ba47c47bb33f9b7569a744600169d0cec2fee18.tar dexon-sol-tools-7ba47c47bb33f9b7569a744600169d0cec2fee18.tar.gz dexon-sol-tools-7ba47c47bb33f9b7569a744600169d0cec2fee18.tar.bz2 dexon-sol-tools-7ba47c47bb33f9b7569a744600169d0cec2fee18.tar.lz dexon-sol-tools-7ba47c47bb33f9b7569a744600169d0cec2fee18.tar.xz dexon-sol-tools-7ba47c47bb33f9b7569a744600169d0cec2fee18.tar.zst dexon-sol-tools-7ba47c47bb33f9b7569a744600169d0cec2fee18.zip |
feat: lowercase keys in additionalAssetMetaDataMap
Diffstat (limited to 'packages/instant')
-rw-r--r-- | packages/instant/src/components/zero_ex_instant_provider.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_provider.tsx b/packages/instant/src/components/zero_ex_instant_provider.tsx index 8b75cdfc4..e899b82fe 100644 --- a/packages/instant/src/components/zero_ex_instant_provider.tsx +++ b/packages/instant/src/components/zero_ex_instant_provider.tsx @@ -46,7 +46,8 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider ); // merge the additional additionalAssetMetaDataMap with our default map const completeAssetMetaDataMap = { - ...props.additionalAssetMetaDataMap, + // Make sure the passed in assetDatas are lower case + ..._.mapKeys(props.additionalAssetMetaDataMap || {}, (value, key) => key.toLowerCase()), ...defaultState.assetMetaDataMap, }; // construct the final state |