From 2d4b9fd72b43abf54170cbb213527157a38ba772 Mon Sep 17 00:00:00 2001 From: Carlos Felix Date: Thu, 11 Nov 2021 12:20:15 -0600 Subject: [PATCH] Replace not-supported array flat method. --- modules/33acrossBidAdapter.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/33acrossBidAdapter.js b/modules/33acrossBidAdapter.js index ef14511f9f9..af67bb2bf48 100644 --- a/modules/33acrossBidAdapter.js +++ b/modules/33acrossBidAdapter.js @@ -650,13 +650,11 @@ function interpretResponse(serverResponse, bidRequest) { isArray(seat.bid) && seat.bid.length > 0 )) - .map((seat) => { - return ( - seat.bid - .map((bid) => _createBidResponse(bid, cur)) + .reduce((acc, seat) => { + return acc.concat( + seat.bid.map((bid) => _createBidResponse(bid, cur)) ); - }) - .flat() + }, []); } function _createBidResponse(bid, cur) {