fix create profession

This commit is contained in:
Wikzyy
2025-03-25 19:12:18 +07:00
parent f499530a6f
commit 7c0c631886

View File

@ -61,7 +61,7 @@ const AddDialog = () => {
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
if (formField.name.trim() === '') {
if (formField.name === '') {
setAlert({ show: true, message: 'Please fill name field.' });
return;
}