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