changed my mind, no point sending spinner over to analytics

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2017-05-30 00:10:36 +01:00
parent 5dde23ae54
commit bdf94b14a4
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ class ModalManager {
}
createDialog(Element, props, className) {
Analytics.trackEvent('Modal', props && props.title ? props.title : className, 'createDialog');
if (props && props.title) {
Analytics.trackEvent('Modal', props.title, 'createDialog');
}
return this.createDialogAsync((cb) => {cb(Element);}, props, className);
}