diff --git a/microsetta_interface/implementation.py b/microsetta_interface/implementation.py index 1f2fb652..8ef6e1e9 100644 --- a/microsetta_interface/implementation.py +++ b/microsetta_interface/implementation.py @@ -3394,7 +3394,7 @@ def post_update_address(body): "email": body['email'], "address_1": body['address_1'], "address_2": body['address_2'], - "address_3": body['address_3'], + "address_3": body.get('address_3', ""), "city": body['city'], "state": body['state'], "postal": body['postal'], diff --git a/microsetta_interface/templates/update_address.jinja2 b/microsetta_interface/templates/update_address.jinja2 index 7d750a81..4cd9f384 100644 --- a/microsetta_interface/templates/update_address.jinja2 +++ b/microsetta_interface/templates/update_address.jinja2 @@ -45,7 +45,6 @@ .text(state[1]); $("#state").append(option); } - $("#form_group_address_3, #form_group_address_type").show(); } else { for (var country of COUNTRIES_LIST) { @@ -104,9 +103,6 @@ $(document).ready(function(){ address_2: function () { return $("#address_2").val(); }, - address_3: function () { - return $("#address_3").val(); - }, city: function() { return $("#city").val(); }, @@ -115,7 +111,8 @@ $(document).ready(function(){ }, country: function() { return $("#country").val(); - } + }, + address_3: "" } } }, @@ -147,11 +144,6 @@ $(document).ready(function(){