{% if currencySwitcher is defined and currencySwitcher and (app.user == null) %}
{# or app.user.customer == null#}
<li>
{% set session_currency = app.session.get('userCurrency') %}
<div class="dropdown language-option">
<button class="dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ session_currency }}
</button>
<div class="dropdown-menu language-dropdown-menu" style="">
{% for currency in currencies %}
{% if currency is not null %}
<a class="dropdown-item {{ (currency == session_currency)?"selected":"" }}"
href="{{ path('change_currency', {'currency': currency}) }}">{{ currency }}</a>
{% endif %}
{% endfor %}
</div>
</div>
</li>
{% endif %}