Skip to content

Commit

Permalink
minor validation update to consentManagement.js (prebid#5701)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Harper <eharper@rubiconproject.com>
  • Loading branch information
2 people authored and BrightMountainMediaInc committed Sep 14, 2020
1 parent 134ecdf commit 91654c0
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 91654c0

Please sign in to comment.