Remove warnings

This commit is contained in:
Adrien Vannson 2023-02-28 17:51:30 +01:00
parent 104da0242b
commit df2d531467
No known key found for this signature in database
GPG Key ID: FE2E66FD978C1A55
2 changed files with 3 additions and 3 deletions

View File

@ -104,10 +104,10 @@ function RoomInformation({ roomId }) {
</Typography> </Typography>
<ul> <ul>
<li>{ <li>{
names.length == 0 ? <em>Aucun nom défini</em> : names.join(', ') names.length === 0 ? <em>Aucun nom défini</em> : names.join(', ')
}</li> }</li>
<li>{ <li>{
users.length == 0 users.length === 0
? <em>Aucun utilisateur défini</em> ? <em>Aucun utilisateur défini</em>
: 'Utilisée par ' + users.join(', ') : 'Utilisée par ' + users.join(', ')
}</li> }</li>

View File

@ -7,7 +7,7 @@ import TableBody from '@mui/material/TableBody';
/* Displays a list of rooms */ /* Displays a list of rooms */
export default function Rooms({ rooms, callbackRoomSelected }) { export default function Rooms({ rooms, callbackRoomSelected }) {
if (rooms.length == 0) { if (rooms.length === 0) {
return; return;
} }
return <TableContainer variant="outlined"> return <TableContainer variant="outlined">