diff --git a/frontends/dashboard/src/components/tables/pricing-table/PricingTable.svelte b/frontends/dashboard/src/components/tables/pricing-table/PricingTable.svelte index e9b5d941..bab75297 100644 --- a/frontends/dashboard/src/components/tables/pricing-table/PricingTable.svelte +++ b/frontends/dashboard/src/components/tables/pricing-table/PricingTable.svelte @@ -190,7 +190,7 @@ {#each items as item} {/each} @@ -243,7 +243,7 @@ {#each items as item} {/each} @@ -297,7 +297,7 @@ {#each items as item} {/each} diff --git a/frontends/dashboard/src/routes/account/+page.svelte b/frontends/dashboard/src/routes/account/+page.svelte index 089ce3d3..801adb09 100644 --- a/frontends/dashboard/src/routes/account/+page.svelte +++ b/frontends/dashboard/src/routes/account/+page.svelte @@ -78,7 +78,8 @@ - {#if $founderMembershipsRemaining} + {#if qtyMax > 0} - {$founderMembershipsRemaining}/100 Remaining + {$qtyRemaining}/{qtyMax} Remaining + {#if $qtyRemaining <= 0} + SOLD OUT + {/if} {/if} {description} @@ -48,9 +52,13 @@ {/if} - {#if priceMonthly[0] > 0 && priceAnnually[0] > 0} + {#if priceAnnually[0] > 0} 0 + ? $qtyRemaining > 0 + ? checkoutMonthURL + : 'javascript:alert(`sold out`)' + : checkoutMonthURL} class="mt-auto mb-4 block rounded-md py-2 px-3 text-center text-sm font-semibold leading-6 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 bg-white/10 text-white hover:bg-white/20 focus-visible:outline-white" > @@ -60,9 +68,14 @@ / {priceMonthly[1]} - + {/if} + {#if priceMonthly[0] > 0} 0 + ? $qtyRemaining > 0 + ? checkoutYearURL + : 'javascript:alert(`sold out`)' + : checkoutYearURL} class="block rounded-md py-2 px-3 text-center text-sm font-semibold leading-6 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 bg-white/10 text-white hover:bg-white/20 focus-visible:outline-white" >
- {$founderMembershipsRemaining}/100 Remaining + {$qtyRemaining}/{qtyMax} Remaining
SOLD OUT
{description}