diff --git a/server/routes/rooms.js b/server/routes/rooms.js index a3ede0a7..57bfb307 100644 --- a/server/routes/rooms.js +++ b/server/routes/rooms.js @@ -46,7 +46,7 @@ router.post('/verify-password', roomPasswordLimiter, async (req, res) => { const { roomId, password } = req.body; // ── Basic validation ───────────────────────────────────────────────────── - if (!roomId || typeof roomId !== 'string' || roomId.trim() === '') { + if (!roomId || typeof roomId !== 'string' || roomId.trim().length === 0) { return res.status(400).json({ error: 'roomId is required.' }); } if (!password || typeof password !== 'string' || password.trim() === '') { diff --git a/src/components/Landing/ContributorsPage.jsx b/src/components/Landing/ContributorsPage.jsx index 6e36ec3e..2bf783f1 100644 --- a/src/components/Landing/ContributorsPage.jsx +++ b/src/components/Landing/ContributorsPage.jsx @@ -247,3 +247,5 @@ export default function ContributorsPage() { ); } + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file