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);