diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-17 08:14:10 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-17 08:14:10 +0800 |
commit | ac942faa258f604f4f6171759f6bcdf786317d29 (patch) | |
tree | b38c9bd533435391737af447cdff98635aadff26 /packages | |
parent | 654c13df8aee2e43992c6629d2249d56667fec67 (diff) | |
download | dexon-sol-tools-ac942faa258f604f4f6171759f6bcdf786317d29.tar.gz dexon-sol-tools-ac942faa258f604f4f6171759f6bcdf786317d29.tar.zst dexon-sol-tools-ac942faa258f604f4f6171759f6bcdf786317d29.zip |
chore: use lodash where relevant
Diffstat (limited to 'packages')
-rw-r--r-- | packages/instant/src/index.umd.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts index 518326e21..34d893ad7 100644 --- a/packages/instant/src/index.umd.ts +++ b/packages/instant/src/index.umd.ts @@ -54,7 +54,7 @@ export const render = (config: ZeroExInstantConfig, selector: string = DEFAULT_Z injectedDiv.setAttribute('class', INJECTED_DIV_CLASS); appendTo.appendChild(injectedDiv); const closeInstant = () => { - if (config.onClose) { + if (!_.isUndefined(config.onClose)) { config.onClose(); } appendTo.removeChild(injectedDiv); |