{/* Skill Evaluation */}
- {skillCategories.length > 0 &&
- userEvaluation.evaluations.length > 0 && (
-
- )}
+
);
diff --git a/components/evaluation/client-wrapper.tsx b/components/evaluation/client-wrapper.tsx
index c2b0d69..dab4a52 100644
--- a/components/evaluation/client-wrapper.tsx
+++ b/components/evaluation/client-wrapper.tsx
@@ -13,7 +13,7 @@ import {
} from "@/lib/evaluation-actions";
interface EvaluationClientWrapperProps {
- userEvaluation: UserEvaluation;
+ userEvaluation: UserEvaluation | null;
teams: Team[];
children: React.ReactNode;
}
diff --git a/lib/auth-utils.ts b/lib/auth-utils.ts
index 55ddf06..1639124 100644
--- a/lib/auth-utils.ts
+++ b/lib/auth-utils.ts
@@ -11,7 +11,7 @@ export class AuthService {
*/
static async login(
profile: UserProfile
- ): Promise<{ user: UserProfile & { id: number }; userId: number }> {
+ ): Promise<{ user: UserProfile & { uuid: string }; userUuid: string }> {
const response = await fetch("/api/auth", {
method: "POST",
headers: {
diff --git a/lib/server-auth.ts b/lib/server-auth.ts
index 8f900ba..62a6b04 100644
--- a/lib/server-auth.ts
+++ b/lib/server-auth.ts
@@ -6,7 +6,21 @@ import { SkillsService } from "@/services/skills-service";
import { SkillCategory, Team } from "./types";
/**
- * Récupère l'ID utilisateur depuis le cookie côté serveur
+ * Récupère l'UUID utilisateur depuis le cookie côté serveur
+ */
+export async function getUserUuidFromCookie(): Promise