Skip to content

Commit

Permalink
fix find issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SleimanJneidi committed Mar 2, 2020
1 parent a93db33 commit e2fcaf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/quantcastBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as utils from '../src/utils.js';
import { ajax } from '../src/ajax.js';
import { config } from '../src/config.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import find from 'core-js/library/fn/array/find.js';

const BIDDER_CODE = 'quantcast';
const DEFAULT_BID_FLOOR = 0.0000000001;
Expand Down Expand Up @@ -224,8 +225,8 @@ export const spec = {
},
getUserSyncs(syncOptions, serverResponses) {
const syncs = []
if (syncOptions.pixelEnabled && serverResponses.length > 0) {
const responseWithUrl = serverResponses.find(serverResponse =>
if (syncOptions.pixelEnabled) {
const responseWithUrl = find(serverResponses, serverResponse =>
utils.deepAccess(serverResponse.body, 'userSync.url')
);

Expand Down

0 comments on commit e2fcaf5

Please sign in to comment.