Dont throw an exception, if we can not retrieve an currency exchange rate, but show an meaningful flash message

This commit is contained in:
Jan Böhmer 2022-12-11 15:10:16 +01:00
parent 0c5180bda4
commit 2b2fc6f1e6
3 changed files with 22 additions and 3 deletions

View file

@ -20,7 +20,7 @@
{{ form_row(form.exchange_rate) }}
{% if form.update_exchange_rate is defined %}
{{ form_row(form.update_exchange_rate, {attr: {class: 'btn-link'}}) }}
{{ form_row(form.update_exchange_rate, {attr: {class: 'btn-info'}}) }}
{% endif %}
{% if entity.inverseExchangeRate %}
<span class="form-text text-muted offset-3 col-9">