Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Show correct number of seats
Luke Vella879266b95a9e
diff --git a/apps/web/src/app/[locale]/(space)/(dashboard)/page.tsx b/apps/web/src/app/[locale]/(space)/(dashboard)/page.tsxindex 769dfbf72..505f5ac6e 100644--- a/apps/web/src/app/[locale]/(space)/(dashboard)/page.tsx+++ b/apps/web/src/app/[locale]/(space)/(dashboard)/page.tsx@@ -20,8 +20,9 @@ import { requireSpace, requireUser } from "@/auth/data";import { Trans } from "@/components/trans";import { IfCloudHosted } from "@/contexts/environment";import { getUpcomingEventsCount } from "@/features/scheduled-event/data";-import { getSpaceSeatCount, loadMembers } from "@/features/space/data";+import { loadMembers } from "@/features/space/data";import { defineAbilityForMember } from "@/features/space/member/ability";+import { getTotalSeatsForSpace } from "@/features/space/utils";import { getTranslation } from "@/i18n/server";import { IfFeatureEnabled } from "@/lib/feature-flags/client";import { FeedbackAlert } from "./feedback-alert";@@ -40,7 +41,7 @@ async function loadData() {}),getUpcomingEventsCount(),loadMembers().then((members) => members.total),- getSpaceSeatCount(space.id),+ getTotalSeatsForSpace(space.id),]);const ability = defineAbilityForMember({ space, user });