Skip to content

Commit

Permalink
Fix flask mobile validate inventory (#583)
Browse files Browse the repository at this point in the history
* [react] New # items in cart metrics + tags for existing metrics

* react fix

* [flask] fix broken checkout in mobile (no validate_inventory passed)
  • Loading branch information
realkosty authored Sep 26, 2024
1 parent 1bd2d5f commit aa0187d
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 = order["validate_inventory"] == "true"
validate_inventory = "validate_inventory" in order and order["validate_inventory"] == "true"

inventory = []
try:
Expand Down

0 comments on commit aa0187d

Please sign in to comment.