chore: build
Frontend Web - Build & Lint / build (push) Has been cancelled

This commit is contained in:
2026-06-21 12:19:54 +02:00
parent 13d978c76e
commit cee859539e
2 changed files with 57 additions and 10 deletions
+7 -1
View File
@@ -27,7 +27,13 @@ function UserAccueil() {
const [error, setError] = useState<string | null>(null);
useEffect(() => {
getCategories().then(setCategories);
getCategories().then((cats) => {
const sorted = [...cats].sort((a, b) => {
if (a.is_coming_soon === b.is_coming_soon) return 0;
return a.is_coming_soon ? 1 : -1;
});
setCategories(sorted);
});
}, []);
useEffect(() => {