Skip to content

Commit

Permalink
empty string is also false in js (prebid#2766)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaiminpanchal27 authored and AlessandroDG committed Sep 13, 2018
1 parent ece0ef9 commit dcd3584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/prebidServerBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function queueSync(bidderCodes, gdprConsent) {

if (gdprConsent) {
// only populate gdpr field if we know CMP returned consent information (ie didn't timeout or have an error)
if (gdprConsent.consentString) {
if (typeof gdprConsent.consentString !== 'undefined') {
payload.gdpr = (gdprConsent.gdprApplies) ? 1 : 0;
}
// attempt to populate gdpr_consent if we know gdprApplies or it may apply
Expand Down

0 comments on commit dcd3584

Please sign in to comment.