Skip to content

Commit

Permalink
minor validation update to consentManagement.js (#5701)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Harper <eharper@rubiconproject.com>
  • Loading branch information
harpere and Eric Harper authored Sep 8, 2020
1 parent bcf7b5a commit c3c04f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/consentManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ function storeConsentData(cmpConsentObject) {
vendorData: (cmpConsentObject) || undefined,
gdprApplies: cmpConsentObject && typeof cmpConsentObject.gdprApplies === 'boolean' ? cmpConsentObject.gdprApplies : gdprScope
};
if (cmpConsentObject.addtlConsent && utils.isStr(cmpConsentObject.addtlConsent)) {
if (cmpConsentObject && cmpConsentObject.addtlConsent && utils.isStr(cmpConsentObject.addtlConsent)) {
consentData.addtlConsent = cmpConsentObject.addtlConsent;
};
}
Expand Down

0 comments on commit c3c04f5

Please sign in to comment.