rev: create divisi

Deskripsi:
- anggota divisi boleh 1 anggota saja

No Issues
This commit is contained in:
amel
2025-01-05 18:06:55 +08:00
parent 9b8ca0c99c
commit e697b2d650

View File

@@ -49,8 +49,11 @@ export default function CreateDivision() {
const cek = checkAll()
if (!cek)
return false
if (member.length <= 1)
return toast.error("Error! Silahkan pilih anggota lebih dari 1")
if (member.length == 0)
return toast.error("Error! Silahkan pilih anggota")
// if (member.length <= 1)
// return toast.error("Error! Silahkan pilih anggota lebih dari 1")
setChooseAdmin(true)
}