Skip to content

Commit

Permalink
#6486 applied review related updates & fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri committed Apr 20, 2021
1 parent b3d342b commit 156e653
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/smarticoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -72,7 +72,6 @@ export const spec = {
return ServerRequestObjects;
},
interpretResponse: function (serverResponse, bidRequest) {

var i
var bid
var bidObject
Expand All @@ -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 || ''

Expand Down

0 comments on commit 156e653

Please sign in to comment.