diff --git a/corehq/apps/analytics/static/analytix/js/hubspot.js b/corehq/apps/analytics/static/analytix/js/hubspot.js index 7836ff44240e..0c152900e767 100644 --- a/corehq/apps/analytics/static/analytix/js/hubspot.js +++ b/corehq/apps/analytics/static/analytix/js/hubspot.js @@ -47,7 +47,7 @@ hqDefine('analytix/js/hubspot', [ */ _utils.loadDemoForm = function () { let isTrial = _get('isDemoTrial'), - isVariant = _get('demoABv2').version === 'variant', + isVariant = _get('demoABv2') && _get('demoABv2').version === 'variant', $modal = $('#cta-form-get-demo'), $form = $('#get-demo-cta-form-content'), hasInteractedWithForm = false,