From a34dd3ddf119338b322577338b6c68b205a36ebe Mon Sep 17 00:00:00 2001 From: Deepak Hasani Date: Fri, 5 Jul 2024 16:05:01 +0530 Subject: [PATCH] Used storageManager instead of directly using localStorgae --- modules/relevatehealthBidAdapter.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/relevatehealthBidAdapter.js b/modules/relevatehealthBidAdapter.js index 4dbb60e0848..4673e396662 100644 --- a/modules/relevatehealthBidAdapter.js +++ b/modules/relevatehealthBidAdapter.js @@ -67,14 +67,14 @@ function buildRequests(bidRequests, bidderRequest) { // Format the response as per the standards function interpretResponse(bidResponse, bidRequest) { let resp = []; - if (bidResponse && bidResponse.body) { + if (bidResponse) { try { - let bids = bidResponse.body.seatbid && bidResponse.body.seatbid[0] ? bidResponse.body.seatbid[0].bid : []; - if (bids) { - bids.forEach(bidObj => { - let newBid = formatResponse(bidObj); - newBid.mediaType = BANNER; - resp.push(newBid); + let bidRequests = bidResponse.body && bidResponse.body.seatbid && bidResponse.body.seatbid[0] ? bidResponse.body.seatbid[0].bid : []; + if (bidRequests) { + bidRequests.forEach(bidRequestObj => { + let newBidObject = formatResponse(bidRequestObj); + newBidObject.mediaType = BANNER; + resp.push(newBidObject); }); } } catch (err) {