aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/index.umd.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-11-02 09:24:32 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-11-03 01:57:24 +0800
commit5e66cc8a40759658a8763f85996163e5ae013fcd (patch)
treeea397e40f9c438c8598538f00d3ef0c8bb02e237 /packages/instant/src/index.umd.ts
parent4fda2a2d049843db7f87b930321c11c910e40ea3 (diff)
downloaddexon-sol-tools-5e66cc8a40759658a8763f85996163e5ae013fcd.tar
dexon-sol-tools-5e66cc8a40759658a8763f85996163e5ae013fcd.tar.gz
dexon-sol-tools-5e66cc8a40759658a8763f85996163e5ae013fcd.tar.bz2
dexon-sol-tools-5e66cc8a40759658a8763f85996163e5ae013fcd.tar.lz
dexon-sol-tools-5e66cc8a40759658a8763f85996163e5ae013fcd.tar.xz
dexon-sol-tools-5e66cc8a40759658a8763f85996163e5ae013fcd.tar.zst
dexon-sol-tools-5e66cc8a40759658a8763f85996163e5ae013fcd.zip
feat(instant): implement affiliateFeeInfo prop
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 b12e65485..806187a16 100644
--- a/packages/instant/src/index.umd.ts
+++ b/packages/instant/src/index.umd.ts
@@ -24,6 +24,9 @@ export const render = (props: ZeroExInstantOverlayProps, selector: string = DEFA
if (!_.isUndefined(props.zIndex)) {
assert.isNumber('props.zIndex', props.zIndex);
}
+ if (!_.isUndefined(props.affiliateInfo)) {
+ assert.isValidaffiliateInfo('props.affiliateInfo', props.affiliateInfo);
+ }
const appendToIfExists = document.querySelector(selector);
assert.assert(!_.isNull(appendToIfExists), `Could not find div with selector: ${selector}`);
const appendTo = appendToIfExists as Element;