Skip to content

Commit

Permalink
safe check permutive cohorts
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrmartinez committed Jan 10, 2023
1 parent 5002c21 commit b824499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/permutiveRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function getCustomBidderFn (moduleConfig, bidder) {
*/
function getDefaultBidderFn (bidder) {
const isPStandardTargetingEnabled = (data, acEnabled) => {
return (acEnabled && data.ac && data.ac.length) || (data.ssp && data.ssp.cohorts.length)
return (acEnabled && data.ac && data.ac.length) || (data.ssp && data.ssp.cohorts?.length)
}
const pStandardTargeting = (data, acEnabled) => {
const ac = (acEnabled) ? (data.ac ?? []) : []
Expand Down

0 comments on commit b824499

Please sign in to comment.