Skip to content

Commit

Permalink
Merge pull request #33444 from dimagi/bmb/hubspot-ab-test-issue
Browse files Browse the repository at this point in the history
Fix hubspot.js issue on prelogin pages
  • Loading branch information
biyeun authored Sep 7, 2023
2 parents 22cd3f5 + ef5b1a7 commit 90ba51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corehq/apps/analytics/static/analytix/js/hubspot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 90ba51b

Please sign in to comment.