diff --git a/src/main/webapp/src/pages/competition/editor/CMAdmin.jsx b/src/main/webapp/src/pages/competition/editor/CMAdmin.jsx
index 1066ed7..8461cd5 100644
--- a/src/main/webapp/src/pages/competition/editor/CMAdmin.jsx
+++ b/src/main/webapp/src/pages/competition/editor/CMAdmin.jsx
@@ -83,7 +83,7 @@ function CategoryHeader({cat, setCatId}) {
useEffect(() => {
if (cats && cats.length > 0 && !cat) {
- setCatId(cats[0].id);
+ setCatId(cats.sort((a, b) => a.name.localeCompare(b.name))[0].id);
}
}, [cats]);
@@ -104,15 +104,18 @@ function CategoryHeader({cat, setCatId}) {
Edition de la catégorie
-
+
+ {cat &&
+
Type: {(cat.type & 1) !== 0 ? "Poule" : ""}{cat.type === 3 ? " & " : ""}{(cat.type & 2) !== 0 ? "Tournois" : ""} |
+ Lice: {cat.liceName}
}
-
+