From 4cc6ee79e4ab77d82bc25ec644ddb0e7daf2b2d9 Mon Sep 17 00:00:00 2001 From: "C. Fuhrman" Date: Thu, 27 Feb 2025 16:07:00 -0500 Subject: [PATCH] =?UTF-8?q?Permet=20d'ajouter=20une=20premi=C3=A8re=20sall?= =?UTF-8?q?e=20Nom=20de=20salle=20toujours=20en=20majuscules=20(bd)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/pages/Teacher/Dashboard/Dashboard.tsx | 10 ++++++---- server/controllers/room.js | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/client/src/pages/Teacher/Dashboard/Dashboard.tsx b/client/src/pages/Teacher/Dashboard/Dashboard.tsx index 8f36074..1605e7a 100644 --- a/client/src/pages/Teacher/Dashboard/Dashboard.tsx +++ b/client/src/pages/Teacher/Dashboard/Dashboard.tsx @@ -426,15 +426,17 @@ const Dashboard: React.FC = () => {
- {/* */} +
{selectedRoom && ( @@ -448,7 +450,7 @@ const Dashboard: React.FC = () => { setNewRoomTitle(e.target.value)} + onChange={(e) => setNewRoomTitle(e.target.value.toUpperCase())} fullWidth /> diff --git a/server/controllers/room.js b/server/controllers/room.js index 51ebf2c..aa3c188 100644 --- a/server/controllers/room.js +++ b/server/controllers/room.js @@ -25,7 +25,7 @@ class RoomsController { throw new AppError(MISSING_REQUIRED_PARAMETER); } - const normalizedTitle = title.toLowerCase(); + const normalizedTitle = title.toUpperCase(); const roomExists = await this.rooms.roomExists(normalizedTitle);