Skip to content

Commit

Permalink
SYL-4253: Flags fix (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee authored Jan 14, 2025
2 parents 8a93ee3 + f01844b commit 390ffdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<span class="flag flag-sm flag-country-{{ hookable_metadata.context.resource.billingData.countryCode|lower }} me-2"></span>
{% set billing_data = hookable_metadata.context.resource.billingData %}

{% if billing_data.countryCode %}
{{ ux_icon('flagpack:' ~ billing_data.countryCode|lower, {'class': 'icon me-1'}) }}
{% endif %}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set shop_billing_data = hookable_metadata.context.resource.shopBillingData %}

{% if shop_billing_data.countryCode %}
<span class="flag flag-sm flag-country-{{ shop_billing_data.countryCode|lower }} me-2"></span>
{{ ux_icon('flagpack:' ~ shop_billing_data.countryCode|lower, {'class': 'icon me-1'}) }}
{% endif %}

0 comments on commit 390ffdf

Please sign in to comment.