Fix card button text potentially showing as undefined

This commit is contained in:
Andrew Kingston 2021-11-08 14:51:13 +00:00
parent a7849eac7d
commit 37c2690a31
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@
{/if}
{#if showButton}
<div class="spectrum-Card-footer button-container">
<Button on:click={buttonOnClick} secondary>{buttonText}</Button>
<Button on:click={buttonOnClick} secondary>{buttonText || ""}</Button>
</div>
{/if}
</div>