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} />