diff --git a/frontend/src/components/listing/ListingHeader.tsx b/frontend/src/components/listing/ListingHeader.tsx index 65f2ae42..c0edf691 100644 --- a/frontend/src/components/listing/ListingHeader.tsx +++ b/frontend/src/components/listing/ListingHeader.tsx @@ -29,6 +29,10 @@ const ListingTitle = (props: Props) => { setIsEditing(false); return; } + if (newTitle.length < 4) { + addErrorAlert("Title must be at least 4 characters long."); + return; + } setSubmitting(true); const { error } = await auth.client.PUT("/listings/edit/{id}", { params: {