Skip to content

Commit

Permalink
cookie case
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-rajneeshkumar committed Nov 7, 2024
1 parent b9712aa commit 30492ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/forms/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ function createHubSpotForm(formConfig, target) {
const params = new Proxy(new URLSearchParams(window.location.search), {
get: (searchParams, prop) => searchParams.get(prop),
});
const valuecmp = params.cmp;
const cmpCookieValue = getCookie('cmp');

Check failure on line 53 in blocks/forms/forms.js

View workflow job for this annotation

GitHub Actions / build

'getCookie' is not defined
const valuecmp = params.cmp || cmpCookieValue;

// Salesforce form fields
const mProductFamily = formConfig.productFamily;
Expand Down

0 comments on commit 30492ac

Please sign in to comment.