diff --git a/src/app/dashboard/(admin)/admin/(settings)/settings/page.tsx b/src/app/dashboard/(admin)/admin/(settings)/settings/page.tsx index 0f26d3f06..d6e69bb01 100644 --- a/src/app/dashboard/(admin)/admin/(settings)/settings/page.tsx +++ b/src/app/dashboard/(admin)/admin/(settings)/settings/page.tsx @@ -65,9 +65,20 @@ export default function SettingsPage() { const formDataHandler = ( event: ChangeEvent, ) => { + const { name, value } = event.target; + + // Bio validation + if (name === "bio" && value.length > 64) { + toast({ + title: "Warning!", + description: "Bio cannot exceed 64 characters", + }); + return; + } + setFormData((previous) => ({ ...previous, - [event.target.name]: event.target.value, + [name]: value, })); };