Skip to content

Commit

Permalink
Simplify logic for filtering bids
Browse files Browse the repository at this point in the history
  • Loading branch information
github-matthieu-wipliez authored and github-tom-kuhnen committed Mar 15, 2024
1 parent 3c57a77 commit 98b6fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/teadsBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const spec = {
return serverResponse.responses
.filter((bid) =>
// ignore this bid if it requires autoplay but it is not enabled on this browser
!(bid.needAutoplay && !autoplayEnabled)
!bid.needAutoplay || autoplayEnabled
).map((bid) => {
const bidResponse = {
cpm: bid.cpm,
Expand Down

0 comments on commit 98b6fba

Please sign in to comment.