This commit is contained in:
Raja Oktafrianto
2025-03-18 11:27:23 +07:00
parent 8026d6910a
commit 1445fc8ecf
28 changed files with 446 additions and 316 deletions

View File

@ -80,7 +80,7 @@ const AddDialog = () => {
const handleSubmit = (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;
}