Skip to content

Commit

Permalink
Used storageManager instead of directly using localStorgae
Browse files Browse the repository at this point in the history
  • Loading branch information
hasanideepak committed Jul 5, 2024
1 parent 78ebb2c commit a34dd3d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/relevatehealthBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a34dd3d

Please sign in to comment.