Changed error to alert.alert-danger

This commit is contained in:
vpopescu
2022-09-29 16:46:08 +02:00
parent e205d05ec8
commit 40eae6c685

View File

@@ -128,10 +128,8 @@ const GroupEdit = (props) => {
}
if (hasDuplicates(propkeys) == true) {
error.textContent = "Duplicate key found!";
error.style.color = "red";
setErrorAlert(`Duplicate keys found!`)
} else {
//error.textContent = "";
propkeys.forEach((key, i) => (propobject[key] = propvalues[i]));
}
if (