From df3c38f944c90649641a1b23e421d663284df7d4 Mon Sep 17 00:00:00 2001 From: Jaimin Panchal Date: Fri, 22 Jun 2018 15:43:30 -0400 Subject: [PATCH] empty string is also false in js --- modules/prebidServerBidAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prebidServerBidAdapter.js b/modules/prebidServerBidAdapter.js index c217b2934edb..7b6b2b9ed7e7 100644 --- a/modules/prebidServerBidAdapter.js +++ b/modules/prebidServerBidAdapter.js @@ -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