diff --git a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/@sidebar/OrganizationSidebar.tsx b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/@sidebar/OrganizationSidebar.tsx index ddf96576..0bf55486 100644 --- a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/@sidebar/OrganizationSidebar.tsx +++ b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/@sidebar/OrganizationSidebar.tsx @@ -10,13 +10,9 @@ import { DesktopSidebarFallback } from '@/components/SidebarComponents/SidebarFa import { SwitcherAndToggle } from '@/components/SidebarComponents/SidebarLogo'; import { FreeTrialComponent } from '@/components/SubscriptionCards'; import { Skeleton } from '@/components/ui/skeleton'; -import { getIsStripeTestMode } from '@/utils/server/stripe-utils'; import { differenceInDays } from 'date-fns'; import { Activity, FileText, Home, Layers, MessageCircle, Users } from 'lucide-react'; - -const isStripeTestMode = getIsStripeTestMode() - async function OrganizationSubscriptionSidebarCard({ organizationId, }: { @@ -45,7 +41,6 @@ async function OrganizationSubscriptionSidebarCard({ isOrganizationAdmin={isOrganizationAdmin} organizationId={organizationId} activeProducts={activeProducts} - defaultOpen={isStripeTestMode} /> } diff --git a/src/components/FreeTrialDialog.tsx b/src/components/FreeTrialDialog.tsx index b8093d84..2b695c59 100644 --- a/src/components/FreeTrialDialog.tsx +++ b/src/components/FreeTrialDialog.tsx @@ -37,11 +37,10 @@ type FreeTrialDialogProps = { organizationId: string activeProducts: UnwrapPromise> isOrganizationAdmin: boolean, - defaultOpen?: boolean } -export function FreeTrialDialog({ organizationId, activeProducts, isOrganizationAdmin, defaultOpen = false }: FreeTrialDialogProps) { +export function FreeTrialDialog({ organizationId, activeProducts, isOrganizationAdmin }: FreeTrialDialogProps) { // this should be true - const [open, setOpen] = useState(defaultOpen) + const [open, setOpen] = useState(true) // supabase cannot sort by foreign table, so we do it here const productsSortedByPrice = getProductsSortedByPrice(activeProducts);