Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix:send default and update consent paylaods on kit init
  • Loading branch information
mmustafa-tse committed Sep 13, 2024
commit db4762c671561d1dec18d2f525c780b43b37e23c
14 changes: 7 additions & 7 deletions src/initialization.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ var initialization = {
common.consentPayloadDefaults =
common.consentHandler.getConsentSettings();

var defaultConsentPayload = common.cloneObject(common.consentPayloadDefaults),
updatedConsentState = common.consentHandler.getUserConsentState(),
updatedDefaultConsentPayload =
common.consentHandler.generateConsentStatePayloadFromMappings(
updatedConsentState,
common.consentMappings
);
var defaultConsentPayload = common.cloneObject(common.consentPayloadDefaults);
var updatedConsentState = common.consentHandler.getUserConsentState();
var updatedDefaultConsentPayload =
common.consentHandler.generateConsentStatePayloadFromMappings(
updatedConsentState,
common.consentMappings
);

if (!common.isEmpty(defaultConsentPayload)) {
common.sendDefaultConsentPayloadToGoogle(defaultConsentPayload)
Expand Down
Loading