Skip to content

Commit

Permalink
Fix order crash when state doesn't exist in countries
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfox committed Feb 22, 2025
1 parent 55907cc commit ae4f680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registration/views/ordering.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def do_checkout(
order.billingAddress1 = billingData["address1"]
order.billingAddress2 = billingData["address2"]
order.billingCity = billingData["city"]
order.billingState = billingData["state"]
order.billingState = billingData["state"] or ""
order.billingCountry = billingData["country"]
order.billingEmail = billingData["email"]
order.billingPostal = billingData["postal"]
Expand Down

0 comments on commit ae4f680

Please sign in to comment.