mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-12 18:43:50 +00:00
refactor(#59): Validate receipt links before showing the buttons
This commit is contained in:
@@ -115,9 +115,13 @@
|
||||
{transaction.currency}
|
||||
</p>
|
||||
</div>
|
||||
<a href={transaction.receipt_url} class="btn btn-outline btn-sm" target="_blank"
|
||||
>Download Receipt</a
|
||||
>
|
||||
{#if transaction.receipt_url}
|
||||
<a href={transaction.receipt_url} class="btn btn-outline btn-sm" target="_blank">
|
||||
Download Receipt
|
||||
</a>
|
||||
{:else}
|
||||
<span class="text-gray-500">Receipt unavailable</span>
|
||||
{/if}
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user