title: Shopify / Liquid - using case / when loop, whilst updating cart item quantity
body: <p>I am using the following liquid loop:</p>
  <pre><code>{%- for option in variant_options -%}
    &lt;li class=&quot;product-details__item product-details__item--variant-option&quot; data-cart-item-option&gt;
      {% case option.value %}
        {% when 'S' %}
        Small
        {% when 'M' %}
        Medium
        {% when 'L' %}
        Large
      {% endcase %}
    &lt;/li&gt;
  {%- endfor -%}
  </code></pre>
  <p>This fine works on initial page load, but when you change the quantity of any of the products in the cart, it makes every cart item's option.value return to the original option.value - ie it refreshes them and makes it look as if the case / when loop doesn't exist.</p>
  <p>I suspect its javascript driven, but any ideas/solutions welcome.</p>
  <p>I am using standard shopify debut theme.</p>