Hi all!
I have a simple if condition that if a metafield has a page select it shows a chat size link. This works fine.
Then I added a condition to do the same for another metafield and suddenly it show both duplicated.
Example of page with duplicated links: https://venga-store.com/products/champagne-metallic-sequin-dress
And in this other case, only the Chart Size page is set and the page displays both links: https://venga-store.com/collections/mens-festival-outfits/products/leather-vest-t-shirt
{%- when 'popup' -%}
{% comment %} MGO: Show Chart Table if not empty {% endcomment %}
{%- if product.metafields.custom.size_chart != blank -%}
{{- block.settings.text -}}
{%- endif -%}
{%- when 'popup' -%}
{% comment %} MGO: Show Non-Refundable if not empty {% endcomment %}
{%- if product.metafields.custom._handmade_and_custom_made_to_order != blank -%}
{{- block.settings.text -}}
{%- endif -%}

