Skip to content

Commit

Permalink
fix: update for sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Jun 11, 2024
1 parent cd1b9cb commit 696352d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v0/destinations/ga4_v2/customMappingsHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const boilerplateOperations = (ga4Payload, message, Config, eventName) => {
ga4Payload.events[0].name = eventName;
const integrationsObj = getIntegrationsObj(message, 'ga4');

if (isHybridModeEnabled(Config) && integrationsObj && integrationsObj.sessionId) {
if (isHybridModeEnabled(Config) && integrationsObj?.sessionId) {
ga4Payload.events[0].params.session_id = integrationsObj.sessionId;

Check warning on line 143 in src/v0/destinations/ga4_v2/customMappingsHandler.js

View check run for this annotation

Codecov / codecov/patch

src/v0/destinations/ga4_v2/customMappingsHandler.js#L143

Added line #L143 was not covered by tests
}

Expand Down

0 comments on commit 696352d

Please sign in to comment.