chore: use lodash where relevant

This commit is contained in:
fragosti
2018-11-16 16:14:10 -08:00
parent 654c13df8a
commit ac942faa25

View File

@@ -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);