diff --git a/src/containers/EnterpriseDashboardModal/hooks.js b/src/containers/EnterpriseDashboardModal/hooks.js index e695255..339b39a 100644 --- a/src/containers/EnterpriseDashboardModal/hooks.js +++ b/src/containers/EnterpriseDashboardModal/hooks.js @@ -30,7 +30,11 @@ export const useEnterpriseDashboardHook = () => { setShowModal(false); }; - React.useEffect(trackOpened, []); + React.useEffect(() => { + if (dashboard && dashboard.label) { + trackOpened(); + } + }, []); // eslint-disable-line return { showModal,