update
This commit is contained in:
@ -68,7 +68,7 @@ const EditDialog = () => {
|
||||
const handleUpdate = (e: React.FormEvent<HTMLFormElement>) => {
|
||||
e.preventDefault();
|
||||
|
||||
if (formField.name === '' || formField.posto_adm_id === 0) {
|
||||
if (formField.name.trim() === '' || formField.posto_adm_id === 0) {
|
||||
setAlert({ show: true, message: 'Please fill in all required fields.' });
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user