fix(badges): properly suppress pronouns and lead scanning with {#if false}

HTML comments don't suppress Svelte {#if} blocks — the content was rendering
unconditionally. Switch to {#if false} so the blocks are genuinely hidden.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-04-13 23:29:36 -04:00
parent 430d39231d
commit 81aa0eefcd

View File

@@ -1314,8 +1314,7 @@ let allow_tracking_open = $derived(
{/if}<!-- field_shown: location -->
<!-- === ALLOW TRACKING (Lead Scanning) === -->
<!-- AXONIUS 2026: Lead scanning canceled — commented out temporarily -->
<!-- {#if field_shown('allow_tracking')} -->
{#if false}<!-- AXONIUS 2026: Lead scanning canceled — restore by changing to {#if field_shown('allow_tracking')} -->
<div
class="field-card overflow-hidden rounded-lg"
class:field-card--active={active_field ===
@@ -1455,11 +1454,10 @@ let allow_tracking_open = $derived(
</div>
</div>
</div>
<!-- {/if} --><!-- field_shown: allow_tracking -->
{/if}<!-- field_shown: allow_tracking -->
<!-- === PRONOUNS === -->
<!-- AXONIUS 2026: not on this badge template — commented out temporarily -->
<!-- {#if field_shown('pronouns')} -->
{#if false}<!-- AXONIUS 2026: not on this badge template — restore by changing to {#if field_shown('pronouns')} -->
<div
class="field-card overflow-hidden rounded-lg"
class:field-card--active={active_field === 'pronouns'}>
@@ -1531,7 +1529,7 @@ let allow_tracking_open = $derived(
</div>
</div>
</div>
<!-- {/if} --><!-- field_shown: pronouns -->
{/if}<!-- field_shown: pronouns -->
</div>
<!-- ctrl-accordion-inner attendee -->
</div>