Skip to content

Commit

Permalink
Adds eligibility check to prevent orphaned DOM from rendering (#3412)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtbottens committed Apr 11, 2024
1 parent 9fd29b2 commit 0d8c306
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions sections/main-login.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,17 @@
{{ form.errors | default_errors }}
{%- endif -%}

<section name="sign-in-with-shop-provider">
{{ shop | login_button: hide_button: hide_shop_login_button }}

{%- unless hide_shop_login_button -%}
<p>
{{ 'customer.login_page.alternate_provider_separator' | t }}
</p>
{%- endunless -%}
</section>
{%- if shop.features.login_with_shop_classic_customer_accounts? -%}
<section name="sign-in-with-shop-provider">
{{ shop | login_button: hide_button: hide_shop_login_button }}

{%- unless hide_shop_login_button -%}
<p>
{{ 'customer.login_page.alternate_provider_separator' | t }}
</p>
{%- endunless -%}
</section>
{%- endif -%}

<div class="field">
<input
Expand Down

0 comments on commit 0d8c306

Please sign in to comment.