Why isn't my dropdown menu updating to the selected iPhone model?

hi, I linked alternative products (iPhone models) using tags and meta fields and displayed all this on the product page as a dropdown menu. but now there is a problem when you select any model (for example, iPhone 13) the current model does not change (the iPhone 11 model is always selected in the dropdown menu) how to fix this?

the code is below

{% if product.tags contains "len_genuine_saffiano_full_leather" %}
      {% assign current_product_tag = "len_genuine_saffiano_full_leather" %}
    {% elsif product.tags contains "len-genuine-saffiano-full-leather" %}
      {% assign current_product_tag = "len-genuine-saffiano-full-leather" %}
{% endif %}
  {% if product.tags contains current_product_tag %}  
    
      

        
        

          
          {% render 'icon-caret' %}
        

      

    

{% endif %}
    

Hi @Dubsides ,

Please add code here:

Code:

{% assign current_product = product %}

Hope it helps!