fix(web): show supporter badge for account less than 14 days (#12058)

This commit is contained in:
Alex 2024-08-26 12:20:50 -05:00 committed by GitHub
parent edf47dbbd0
commit f4371578f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,7 +76,6 @@
<LicenseModal onClose={() => (isOpen = false)} />
{/if}
{#if getAccountAge() > 14}
<div class="hidden md:block license-status pl-4 text-sm">
{#if $isPurchased && $preferences.purchase.showSupportBadge}
<button
@ -86,7 +85,7 @@
>
<SupporterBadge />
</button>
{:else if !$isPurchased && showBuyButton}
{:else if !$isPurchased && showBuyButton && getAccountAge() > 14}
<button
type="button"
on:click={openPurchaseModal}
@ -117,7 +116,6 @@
</button>
{/if}
</div>
{/if}
<Portal target="body">
{#if showMessage}