Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: error message
Marc Seitzf4da1d0a7084
diff --git a/components/billing/add-seat-modal.tsx b/components/billing/add-seat-modal.tsxindex 15466516..a3514384 100644--- a/components/billing/add-seat-modal.tsx+++ b/components/billing/add-seat-modal.tsx@@ -7,6 +7,10 @@ import { getPriceIdFromPlan } from "@/ee/stripe/functions/get-price-id-from-planimport { getQuantityFromPriceId } from "@/ee/stripe/functions/get-quantity-from-plan";import { toast } from "sonner";+import { useAnalytics } from "@/lib/analytics";+import { usePlan } from "@/lib/swr/use-billing";+import useLimits from "@/lib/swr/use-limits";+import { Button } from "@/components/ui/button";import {Dialog,@@ -20,10 +24,6 @@ import {import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";-import { useAnalytics } from "@/lib/analytics";-import { usePlan } from "@/lib/swr/use-billing";-import useLimits from "@/lib/swr/use-limits";-export function AddSeatModal({open,setOpen,@@ -89,7 +89,7 @@ export function AddSeatModal({if (!response.ok) {const error = await response.json();- toast.error(error);+ toast.error("Unable to add seats. Please contact support.");setLoading(false);return;}