Update App.svelte

i think checked is a better variable name in this case
pull/8201/head
halil180 4 years ago committed by GitHub
parent 967e9f51ff
commit e3bfa6555c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,18 +1,18 @@
<script>
let yes = false;
let checked = false;
</script>
<label>
<input type=checkbox bind:checked={yes}>
<input type=checkbox bind:checked={checked}>
Yes! Send me regular email spam
</label>
{#if yes}
{#if checked}
<p>Thank you. We will bombard your inbox and sell your personal details.</p>
{:else}
<p>You must opt-in to continue. If you're not paying, you're the product.</p>
{/if}
<button disabled={!yes}>
<button disabled={!checked}>
Subscribe
</button>
</button>

Loading…
Cancel
Save