Fixed a bug which caused non-US or CA addresses to crash registration

This commit is contained in:
Godwin 2017-07-10 13:11:17 -07:00 committed by GitHub
parent f682a92331
commit 4c079df8e2

View File

@ -4,6 +4,6 @@
= save_registration_step do
= textfield :address, @address, required: true, big: true
.multi-field
= textfield :city, @city.city, readonly: true
= textfield :territory, @city.translate_territory.html_safe, readonly: true
= textfield :country, @city.translate_country.html_safe, readonly: true
= textfield :city, (@city.city || '').html_safe, readonly: true
= textfield :territory, (@city.translate_territory || '').html_safe, readonly: true
= textfield :country, (@city.translate_country ||| '').html_safe, readonly: true