Skip to content

Commit

Permalink
Waardex Bid Adapter: use find function from core-js (#6200)
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipStamenkovic authored Jan 19, 2021
1 parent 1729dd3 commit 90b2b61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/waardexBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {registerBidder} from '../src/adapters/bidderFactory.js';
import {BANNER, VIDEO} from '../src/mediaTypes.js';
import {config} from '../src/config.js';
import * as utils from '../src/utils.js';
import find from 'core-js-pure/features/array/find.js';

const ENDPOINT = `https://hb.justbidit.xyz:8843/prebid`;
const BIDDER_CODE = 'waardex';
Expand Down Expand Up @@ -182,7 +183,7 @@ const interpretResponse = (serverResponse, bidRequest) => {
};

const getHbRequestBid = (openRtbBid, bidRequest) => {
return bidRequest.bidRequests.find(x => x.bidId === openRtbBid.impid);
return find(bidRequest.bidRequests, x => x.bidId === openRtbBid.impid);
};

const getHbRequestMediaType = hbRequestBid => {
Expand Down

0 comments on commit 90b2b61

Please sign in to comment.