Only select default country in config if none are selected

This commit is contained in:
Ben Busby 2022-08-01 11:33:38 -06:00
parent 96b9cce70c
commit fde2c4db1e
No known key found for this signature in database
GPG Key ID: B9B7231E01D924A1

View File

@ -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 }}