From bdf94b14a4fd0f92b13eb047f9cf63e9d8a25da6 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 30 May 2017 00:10:36 +0100 Subject: [PATCH] changed my mind, no point sending spinner over to analytics Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/Modal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Modal.js b/src/Modal.js index 11c5d3d9c0..8d53b2da7d 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -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); }