From 93f09794762dcfbe4360a70c51ba75164b013fc8 Mon Sep 17 00:00:00 2001 From: Dmitri Date: Tue, 20 Apr 2021 10:27:18 +0200 Subject: [PATCH] #6486 applied review related updates & fixes #2 --- modules/smarticoBidAdapter.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/smarticoBidAdapter.js b/modules/smarticoBidAdapter.js index 7e6924aa8a0..3df92eab2ce 100644 --- a/modules/smarticoBidAdapter.js +++ b/modules/smarticoBidAdapter.js @@ -55,7 +55,7 @@ export const spec = { if (bid.params.regions && (bid.params.regions instanceof String || (bid.params.regions instanceof Array && bid.params.regions.length))) { bidParam.regions = bid.params.regions if (bidParam.regions instanceof Array) { - bidParam.regions = bidParam.regions.join(',') + bidParam.regions = bidParam.regions.join(',') } } bidParams.push(bidParam) @@ -72,7 +72,6 @@ export const spec = { return ServerRequestObjects; }, interpretResponse: function (serverResponse, bidRequest) { - var i var bid var bidObject @@ -86,11 +85,9 @@ export const spec = { for (i = 0; i < serverResponse.length; i++) { ad = serverResponse[i]; - bid = find(bidRequest.bids, bid => bid.bidId === ad.bidId) - if (bid) { - token = bid.params.token || ''; + token = bid.params.token || '' language = bid.params.language || SMARTICO_CONFIG.language || ''