fix(modal): do not render secondary button if secondaryButtonText is falsy

This commit is contained in:
Eric Y Liu 2021-07-04 06:25:58 -07:00
commit 381e8aa4a8
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@
{button.text}
</Button>
{/each}
{:else}
{:else if secondaryButtonText}
<Button
kind="secondary"
class="{secondaryClass}"

View file

@ -280,7 +280,7 @@
{button.text}
</Button>
{/each}
{:else}
{:else if secondaryButtonText}
<Button
kind="secondary"
on:click="{() => {