Only select default country in config if none are selected

pull/835/head
Ben Busby 2 years ago
parent 96b9cce70c
commit fde2c4db1e
No known key found for this signature in database
GPG Key ID: B9B7231E01D924A1

@ -93,7 +93,11 @@
<select name="country" id="config-country">
{% for country in countries %}
<option value="{{ country.value }}"
{% if config.country in country.value %}
{% if (
config.country != '' and config.country in country.value
) or (
config.country == '' and country.value == '')
%}
selected
{% endif %}>
{{ country.name }}

Loading…
Cancel
Save