Skip to content

Commit

Permalink
force failed checkout if validate_invetory is not set (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmanvar authored Sep 27, 2024
1 parent c5ee451 commit fdd60d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def checkout():
order = json.loads(request.data)
cart = order["cart"]
form = order["form"]
validate_inventory = "validate_inventory" in order and order["validate_inventory"] == "true"
validate_inventory = True if "validate_inventory" not in order else order["validate_inventory"] == "true"

inventory = []
try:
Expand Down

0 comments on commit fdd60d5

Please sign in to comment.