From 38c66e127c3cd382d19507df1d1a9e8b9b4eb9fc Mon Sep 17 00:00:00 2001 From: nwlosinski Date: Thu, 16 Apr 2020 06:34:18 +0200 Subject: [PATCH] hotfix - undefined consent (#5127) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Norbert Włosiński --- modules/justpremiumBidAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/justpremiumBidAdapter.js b/modules/justpremiumBidAdapter.js index 7bd32531ccd..1f84feee7d1 100644 --- a/modules/justpremiumBidAdapter.js +++ b/modules/justpremiumBidAdapter.js @@ -100,7 +100,7 @@ export const spec = { getUserSyncs: function getUserSyncs(syncOptions, responses, gdprConsent, uspConsent) { let url = 'https://pre.ads.justpremium.com/v/1.0/t/sync' + '?_c=' + 'a' + Math.random().toString(36).substring(7) + Date.now(); - if (gdprConsent && (typeof gdprConsent.gdprApplies === 'boolean')) { + if (gdprConsent && (typeof gdprConsent.gdprApplies === 'boolean') && gdprConsent.gdprApplies && gdprConsent.consentString) { url = url + '&consentString=' + encodeURIComponent(gdprConsent.consentString) } if (uspConsent) {