From d0b2095d9508ae4d8b24d774b71edd4f6b9eb39c Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Sat, 27 Jan 2024 22:12:33 -0800 Subject: [PATCH] fix: founder count --- frontends/dashboard/src/routes/account/+page.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontends/dashboard/src/routes/account/+page.svelte b/frontends/dashboard/src/routes/account/+page.svelte index 37cfc78c..d7a2b6da 100644 --- a/frontends/dashboard/src/routes/account/+page.svelte +++ b/frontends/dashboard/src/routes/account/+page.svelte @@ -6,10 +6,10 @@ import FAQSection from '$src/routes/account/FAQSection.svelte' import PricingCard from '$src/routes/account/PricingCard.svelte' import { + isUserFounder, isUserLegacy, userStore, userSubscriptionType, - isUserFounder, } from '$util/stores' import { onMount } from 'svelte' import { writable } from 'svelte/store' @@ -21,7 +21,7 @@ const membershipCount = await client() .client.collection('settings') .getFirstListItem(`name = 'founders-edition-count'`) - founderMembershipsRemaining.set(membershipCount.value) + founderMembershipsRemaining.set(Math.max(0, membershipCount.value)) } catch (e) { console.error(e) } @@ -85,7 +85,7 @@