rev: create divisi
Deskripsi: - anggota divisi boleh 1 anggota saja No Issues
This commit is contained in:
@@ -49,8 +49,11 @@ export default function CreateDivision() {
|
|||||||
const cek = checkAll()
|
const cek = checkAll()
|
||||||
if (!cek)
|
if (!cek)
|
||||||
return false
|
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)
|
setChooseAdmin(true)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user