Fix card button text potentially showing as undefined

This commit is contained in:
Andrew Kingston 2021-11-08 14:51:13 +00:00
parent aa56d6fd63
commit 3e5980082f
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>