Skip to content

Commit

Permalink
bug in AMX bid adapter: assumed filterSettings is not null (#9737)
Browse files Browse the repository at this point in the history
restore package-lock.json
  • Loading branch information
nickjacob authored Apr 3, 2023
1 parent aff38f7 commit c16c389
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modules/amxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ function resolveSize(bid, request, bidId) {
}

function isSyncEnabled(syncConfigP, syncType) {
if (syncConfigP == null) return false;

const syncConfig = syncConfigP[syncType];
if (syncConfig == null) {
return false;
Expand Down
5 changes: 4 additions & 1 deletion test/spec/modules/amxBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,10 @@ describe('AmxBidAdapter', () => {

const base = { d: 2300, l: 2, e: true };

const tests = [[{
const tests = [[
undefined,
{ ...base, t: 0 }
], [{
image: {
bidders: '*',
filter: 'include'
Expand Down

0 comments on commit c16c389

Please sign in to comment.