aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/index.umd.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-02 04:24:32 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-02 04:24:32 +0800
commit9f5f31d39fffa873cedc889b5cf963b294a2dcc6 (patch)
tree073c789cef1143ef6660c882f9db640dd72efb02 /packages/instant/src/index.umd.ts
parentbda9d4c1b099fc4db05d34a1d8dc0543a68413b8 (diff)
downloaddexon-sol-tools-9f5f31d39fffa873cedc889b5cf963b294a2dcc6.tar
dexon-sol-tools-9f5f31d39fffa873cedc889b5cf963b294a2dcc6.tar.gz
dexon-sol-tools-9f5f31d39fffa873cedc889b5cf963b294a2dcc6.tar.bz2
dexon-sol-tools-9f5f31d39fffa873cedc889b5cf963b294a2dcc6.tar.lz
dexon-sol-tools-9f5f31d39fffa873cedc889b5cf963b294a2dcc6.tar.xz
dexon-sol-tools-9f5f31d39fffa873cedc889b5cf963b294a2dcc6.tar.zst
dexon-sol-tools-9f5f31d39fffa873cedc889b5cf963b294a2dcc6.zip
feat: add asserts for new API additions
Diffstat (limited to 'packages/instant/src/index.umd.ts')
-rw-r--r--packages/instant/src/index.umd.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts
index 77bdb66e1..b998abe95 100644
--- a/packages/instant/src/index.umd.ts
+++ b/packages/instant/src/index.umd.ts
@@ -20,5 +20,8 @@ export const render = (props: ZeroExInstantProps, selector: string = DEFAULT_ZER
if (!_.isUndefined(props.networkId)) {
assert.isNumber('networkId', props.networkId);
}
+ if (!_.isUndefined(props.availableAssetDatas)) {
+ assert.areValidAssetDatas('availableAssetDatas', props.availableAssetDatas);
+ }
ReactDOM.render(React.createElement(ZeroExInstant, props), document.querySelector(selector));
};