Skip to content

Commit

Permalink
Title to 75
Browse files Browse the repository at this point in the history
  • Loading branch information
carletex committed Apr 17, 2024
1 parent feb4626 commit b440359
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/app/api/grants/new/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/app/apply/_component/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const Form = () => {
name="title"
autoComplete="off"
type="text"
maxLength={50}
maxLength={75}
/>
</div>
</div>
Expand Down

0 comments on commit b440359

Please sign in to comment.