From e121c705cf327fc3eb4f957de2d7e715131d3ffd Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 18 Nov 2025 01:13:23 +0100 Subject: [PATCH] fix: use uppercase role values in profile page quick actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change role comparisons from lowercase to uppercase to match User type: - "client" → "CLIENT" - "employee" → "EMPLOYEE" - "admin" → "ADMIN" The User type only defines uppercase role values. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/profil/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/profil/page.tsx b/app/profil/page.tsx index 7ed235f..902b55d 100644 --- a/app/profil/page.tsx +++ b/app/profil/page.tsx @@ -240,7 +240,7 @@ export default function ProfilePage() { Actions rapides - {user.role === "client" && ( + {user.role === "CLIENT" && ( <>