Only select default country in config if none are selected

main
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
1 changed files with 5 additions and 1 deletions

View File

@ -93,7 +93,11 @@
<select name="country" id="config-country"> <select name="country" id="config-country">
{% for country in countries %} {% for country in countries %}
<option value="{{ country.value }}" <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 selected
{% endif %}> {% endif %}>
{{ country.name }} {{ country.name }}