aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-12-06 04:16:55 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:06:35 +0800
commit7ba47c47bb33f9b7569a744600169d0cec2fee18 (patch)
tree0bf083001eebae5a15b86055a89d683aba6f8fb0 /packages
parentf8f3a3b3cc1dd92b5ba28ae46d10f61d9e589eb5 (diff)
downloaddexon-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')
-rw-r--r--packages/instant/src/components/zero_ex_instant_provider.tsx3
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