Skip to content

Commit

Permalink
fix bidderRequest matching for finding a renderer (prebid#6359)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulieLorin authored Mar 4, 2021
1 parent 7807069 commit 771d2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auction.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ function getPreparedBidForAuction({adUnitCode, bid, bidderRequest, auctionId}) {
events.emit(CONSTANTS.EVENTS.BID_ADJUSTMENT, bidObject);

// a publisher-defined renderer can be used to render bids
const bidReq = bidderRequest.bids && find(bidderRequest.bids, bid => bid.adUnitCode == adUnitCode);
const bidReq = bidderRequest.bids && find(bidderRequest.bids, bid => bid.adUnitCode == adUnitCode && bid.bidId == bidObject.requestId);
const adUnitRenderer = bidReq && bidReq.renderer;

// a publisher can also define a renderer for a mediaType
Expand Down

0 comments on commit 771d2bb

Please sign in to comment.