Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

limit the description

Kiran Kff6b4aef9c9a
diff --git a/apps/web/lib/zod/schemas/payouts.ts b/apps/web/lib/zod/schemas/payouts.ts
index 9a81c2dc85..705805e543 100644
--- a/apps/web/lib/zod/schemas/payouts.ts
+++ b/apps/web/lib/zod/schemas/payouts.ts
@@ -13,5 +13,8 @@ export const createManualPayoutSchema = z.object({
z.number().default(0),
),
type: z.nativeEnum(PayoutType),
- description: z.string().max(5000).nullable(),
-})
\ No newline at end of file
+ description: z
+ .string()
+ .max(190, "Description must be less than 190 characters")
+ .nullable(),
+});
diff --git a/apps/web/ui/partners/create-payout-sheet.tsx b/apps/web/ui/partners/create-payout-sheet.tsx
index ba5c3dae4d..a7e19c5ce8 100644
--- a/apps/web/ui/partners/create-payout-sheet.tsx
+++ b/apps/web/ui/partners/create-payout-sheet.tsx
@@ -526,7 +526,8 @@ function CreatePayoutSheetContent({ setIsOpen }: CreatePayoutSheetProps) {
<textarea
{...register("description")}
className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
- placeholder="A note to partner about this payout."
+ placeholder="A note to partner about this payout. Max 190 characters."
+ maxLength={190}
/>
</div>