Skip to content

Commit

Permalink
chore: code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nedu64 committed Oct 11, 2024
1 parent 519d962 commit 89d464f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/checkout/shipping.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% if cart is defined %}
{% if currentStore.requireShippingMethodSelectionAtCheckout == false %}
{# If there's 1 or more shipping method available then set it on the cart #}
{% if cart.availableShippingMethodOptions|length == 1 or cart.availableShippingMethodOptions|length > 1 %}
{% if cart.availableShippingMethodOptions|length >= 1 %}
{% for handle, option in cart.availableShippingMethodOptions %}
{% set onlyMethod = handle %}
{% endfor %}
Expand All @@ -23,7 +23,7 @@
{% endif %}
{% else %}
{# If there's 1 or more shipping method available then set it on the cart #}
{% if cart.availableShippingMethodOptions|length == 1 or cart.availableShippingMethodOptions|length > 1 %}
{% if cart.availableShippingMethodOptions|length >= 1 %}
{% for handle, option in cart.availableShippingMethodOptions %}
{% set onlyMethod = handle %}
{% endfor %}
Expand Down

0 comments on commit 89d464f

Please sign in to comment.