From b4403592b3f67436ba0718e3569cf243ed012a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20S=C3=A1nchez?= Date: Wed, 17 Apr 2024 19:45:38 +0200 Subject: [PATCH] Title to 75 --- packages/nextjs/app/api/grants/new/route.ts | 2 +- packages/nextjs/app/apply/_component/Form.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nextjs/app/api/grants/new/route.ts b/packages/nextjs/app/api/grants/new/route.ts index aee2c41..9cf4dfc 100644 --- a/packages/nextjs/app/api/grants/new/route.ts +++ b/packages/nextjs/app/api/grants/new/route.ts @@ -19,7 +19,7 @@ export async function POST(req: Request) { try { const { title, description, signature, signer } = (await req.json()) as ReqBody; - if (!title || !description || !signature || !signer || description.length > 750 || title.length > 50) { + if (!title || !description || !signature || !signer || description.length > 750 || title.length > 75) { return NextResponse.json({ error: "Invalid form details submitted" }, { status: 400 }); } diff --git a/packages/nextjs/app/apply/_component/Form.tsx b/packages/nextjs/app/apply/_component/Form.tsx index d8ebd72..0ac9c4d 100644 --- a/packages/nextjs/app/apply/_component/Form.tsx +++ b/packages/nextjs/app/apply/_component/Form.tsx @@ -76,7 +76,7 @@ const Form = () => { name="title" autoComplete="off" type="text" - maxLength={50} + maxLength={75} />