Skip to content

Commit

Permalink
FIX: Remove HubSpot signup event request from hook (#841)
Browse files Browse the repository at this point in the history
Remove HubSpot signup event request from  hook

Co-authored-by: Hari John Kuriakose <[email protected]>
  • Loading branch information
tahierhussain and hari-kuriakose authored Nov 14, 2024
1 parent d3628c8 commit 7f92acd
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions frontend/src/hooks/useSessionValid.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ try {
// Plugin not available
}

// Import useGoogleTagManager hook
let hsSignupEvent;
try {
hsSignupEvent =
require("../plugins/hooks/useGoogleTagManager.js").useGoogleTagManager();
} catch {
// Ignore if hook not available
}

let selectedProduct;
let selectedProductStore;
let PRODUCT_NAMES = {};
Expand Down Expand Up @@ -120,11 +111,6 @@ function useSessionValid() {
}
});

const isNewOrg = setOrgRes?.data?.is_new_org || false;
if (isNewOrg && hsSignupEvent) {
hsSignupEvent();
}

userAndOrgDetails = setOrgRes?.data?.user;
userAndOrgDetails["orgName"] = setOrgRes?.data?.organization?.name;
userAndOrgDetails["orgId"] = orgId;
Expand Down

0 comments on commit 7f92acd

Please sign in to comment.