mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-07 14:46:41 +00:00
fix: founder count
This commit is contained in:
parent
3ab289a66b
commit
d0b2095d95
@ -6,10 +6,10 @@
|
|||||||
import FAQSection from '$src/routes/account/FAQSection.svelte'
|
import FAQSection from '$src/routes/account/FAQSection.svelte'
|
||||||
import PricingCard from '$src/routes/account/PricingCard.svelte'
|
import PricingCard from '$src/routes/account/PricingCard.svelte'
|
||||||
import {
|
import {
|
||||||
|
isUserFounder,
|
||||||
isUserLegacy,
|
isUserLegacy,
|
||||||
userStore,
|
userStore,
|
||||||
userSubscriptionType,
|
userSubscriptionType,
|
||||||
isUserFounder,
|
|
||||||
} from '$util/stores'
|
} from '$util/stores'
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
import { writable } from 'svelte/store'
|
import { writable } from 'svelte/store'
|
||||||
@ -21,7 +21,7 @@
|
|||||||
const membershipCount = await client()
|
const membershipCount = await client()
|
||||||
.client.collection('settings')
|
.client.collection('settings')
|
||||||
.getFirstListItem(`name = 'founders-edition-count'`)
|
.getFirstListItem(`name = 'founders-edition-count'`)
|
||||||
founderMembershipsRemaining.set(membershipCount.value)
|
founderMembershipsRemaining.set(Math.max(0, membershipCount.value))
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
}
|
}
|
||||||
@ -85,7 +85,7 @@
|
|||||||
<PricingCard
|
<PricingCard
|
||||||
name={`${PLAN_NAMES[SubscriptionType.Lifetime]}`}
|
name={`${PLAN_NAMES[SubscriptionType.Lifetime]}`}
|
||||||
qtyRemaining={founderMembershipsRemaining}
|
qtyRemaining={founderMembershipsRemaining}
|
||||||
qtyMax={200}
|
qtyMax={100}
|
||||||
description="Super elite! The Founder's Edition is our way of saying thanks for supporting PocketHost in these early days. Choose between lifetime and annual options."
|
description="Super elite! The Founder's Edition is our way of saying thanks for supporting PocketHost in these early days. Choose between lifetime and annual options."
|
||||||
priceMonthly={[299, 'once, use forever']}
|
priceMonthly={[299, 'once, use forever']}
|
||||||
priceAnnually={[99, 'year (save 55%)']}
|
priceAnnually={[99, 'year (save 55%)']}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user