Skip to content

Commit

Permalink
Rubicon Bid Adapter: remove fpd warning (#8688)
Browse files Browse the repository at this point in the history
* remove fpd warning

* return undefined instead of skipping the if

Co-authored-by: Michele Nasti <[email protected]>
  • Loading branch information
2 people authored and ahmadlob committed Jul 27, 2022
1 parent b3ef76d commit 8429f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/rubiconBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ function applyFPD(bidRequest, mediaType, data) {
if (segments.length > 0) return segments.toString();
}).toString();
} else if (typeof prop === 'object' && !Array.isArray(prop)) {
logWarn('Rubicon: Filtered FPD key: ', key, ': Expected value to be string, integer, or an array of strings/ints');
return undefined;
} else if (typeof prop !== 'undefined') {
return (Array.isArray(prop)) ? prop.filter(value => {
if (typeof value !== 'object' && typeof value !== 'undefined') return value.toString();
Expand Down

0 comments on commit 8429f56

Please sign in to comment.