Remove trailing } from utm param (#20763)

This commit is contained in:
Joe Au-Yeung authored and GitHub committed 2025-04-18 11:13:26 +05:30
1 parent f176ebf1da
commit 7e525779b7
1 file changed
+2 -1
@@ -1413,7 +1413,8 @@ export default class SalesforceCRMService implements CRM {
return "";
}
const utmParam = fieldValue.split(":")[1];
// Remove the {utm: and trailing } from the field value
const utmParam = fieldValue.split(":")[1].slice(0, -1);
return tracking[`utm_${utmParam}` as keyof typeof tracking]?.toString() ?? "";
}