From 76aebab95a64b80f34cbbec8a200c756f0e180a8 Mon Sep 17 00:00:00 2001 From: Adam Daley Date: Tue, 7 Jul 2026 08:23:48 +0100 Subject: [PATCH] Fixes for 2 code quality findings in admin_default theme (#3938) * Apply suggested fix to src/themes/admin_default/html/mod_index_dashboard.html.twig from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Apply suggested fix to src/themes/admin_default/html/mod_index_dashboard.html.twig from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/themes/admin_default/html/mod_index_dashboard.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/themes/admin_default/html/mod_index_dashboard.html.twig b/src/themes/admin_default/html/mod_index_dashboard.html.twig index d55d992a4..36bc0e577 100644 --- a/src/themes/admin_default/html/mod_index_dashboard.html.twig +++ b/src/themes/admin_default/html/mod_index_dashboard.html.twig @@ -413,7 +413,7 @@ {% else %} - {{ 'The list is empty'|trans }} + {{ 'The list is empty'|trans }} {% endfor %} @@ -487,7 +487,7 @@ label: "{{ 'Income'|trans }}", height: 112, valueFormat: 'currency', - currency: "{{ currency.code ?: default_currency }}", + currency: "{{ currency.code|default('USD') }}", }], ['chart-orders', {{ admin.stats_get_orders({ 'date_from': request.date_from, 'date_to': request.date_to })|json_encode }}, { label: "{{ 'Orders'|trans }}",