Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

priceFloors: Prevent warning when floor price value is 0 #10701

Merged
merged 2 commits into from
Nov 9, 2023
Merged

priceFloors: Prevent warning when floor price value is 0 #10701

merged 2 commits into from
Nov 9, 2023

Conversation

PascalSalesch
Copy link
Contributor

Type of change

  • Bugfix

Description of change

Prevent the unable to determine a matching price floor for bidResponse warning from showing up when the price floor is 0
I opted to just adding an additional check to the warning line rather than changing the previous if condition since
0 is the only falsy and letting the floorPrice module run when we know the floor price will be met would be inefficient

@jsnellbaker
Copy link
Collaborator

@PascalSalesch Can you please add a unit test to cover this scenario so it's not missed down the road? Thanks.

@patmmccann patmmccann merged commit f2e46d4 into prebid:master Nov 9, 2023
4 checks passed
Copy link
Contributor

@ncolletti ncolletti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants