diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-12-06 04:16:55 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-12-06 04:16:55 +0800 |
commit | f2c5a8e2f1e517e89f45b03bd3cdf5bb59c450bf (patch) | |
tree | 9782b09984b994acea09fe30391d12059b4b562f /packages | |
parent | 55ebf405a0cc7dd24607ff1d1db5b0edd3a61e6e (diff) | |
download | dexon-sol-tools-f2c5a8e2f1e517e89f45b03bd3cdf5bb59c450bf.tar dexon-sol-tools-f2c5a8e2f1e517e89f45b03bd3cdf5bb59c450bf.tar.gz dexon-sol-tools-f2c5a8e2f1e517e89f45b03bd3cdf5bb59c450bf.tar.bz2 dexon-sol-tools-f2c5a8e2f1e517e89f45b03bd3cdf5bb59c450bf.tar.lz dexon-sol-tools-f2c5a8e2f1e517e89f45b03bd3cdf5bb59c450bf.tar.xz dexon-sol-tools-f2c5a8e2f1e517e89f45b03bd3cdf5bb59c450bf.tar.zst dexon-sol-tools-f2c5a8e2f1e517e89f45b03bd3cdf5bb59c450bf.zip |
feat: lowercase keys in additionalAssetMetaDataMap
Diffstat (limited to 'packages')
-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 dae9124c6..f06d551c7 100644 --- a/packages/instant/src/components/zero_ex_instant_provider.tsx +++ b/packages/instant/src/components/zero_ex_instant_provider.tsx @@ -60,7 +60,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 |