Skip to content

Commit

Permalink
minor consentManagement fix (prebid#5050)
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 iggyfisk committed Jun 22, 2020
1 parent 3763360 commit a81f7bb
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 @@ -99,7 +99,7 @@ function lookupIabConsent(cmpSuccess, cmpError, hookConfig) {
if (success) {
if (tcfData.eventStatus === 'tcloaded' || tcfData.eventStatus === 'useractioncomplete') {
cmpSuccess(tcfData, hookConfig);
} else if (tcfData.eventStatus === 'cmpuishown' && tcfData.tcString.length > 0 && tcfData.purposeOneTreatment === true) {
} else if (tcfData.eventStatus === 'cmpuishown' && tcfData.tcString && tcfData.purposeOneTreatment === true) {
cmpSuccess(tcfData, hookConfig);
}
} else {
Expand Down

0 comments on commit a81f7bb

Please sign in to comment.