aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-17 08:14:10 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-17 08:14:10 +0800
commitac942faa258f604f4f6171759f6bcdf786317d29 (patch)
treeb38c9bd533435391737af447cdff98635aadff26 /packages/instant
parent654c13df8aee2e43992c6629d2249d56667fec67 (diff)
downloaddexon-sol-tools-ac942faa258f604f4f6171759f6bcdf786317d29.tar
dexon-sol-tools-ac942faa258f604f4f6171759f6bcdf786317d29.tar.gz
dexon-sol-tools-ac942faa258f604f4f6171759f6bcdf786317d29.tar.bz2
dexon-sol-tools-ac942faa258f604f4f6171759f6bcdf786317d29.tar.lz
dexon-sol-tools-ac942faa258f604f4f6171759f6bcdf786317d29.tar.xz
dexon-sol-tools-ac942faa258f604f4f6171759f6bcdf786317d29.tar.zst
dexon-sol-tools-ac942faa258f604f4f6171759f6bcdf786317d29.zip
chore: use lodash where relevant
Diffstat (limited to 'packages/instant')
-rw-r--r--packages/instant/src/index.umd.ts2
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);