diff --git a/client/pages/Admin.tsx b/client/pages/Admin.tsx index acd0622d..3b2cf906 100644 --- a/client/pages/Admin.tsx +++ b/client/pages/Admin.tsx @@ -63,7 +63,7 @@ export default function Admin() { setDemoProfiles([]); } fetch("/api/featured-studios") - .then((r) => r.ok ? r.json() : []) + .then((r) => (r.ok ? r.json() : [])) .then((data) => { if (Array.isArray(data) && data.length) setStudios(data); }) diff --git a/client/pages/GameDevelopment.tsx b/client/pages/GameDevelopment.tsx index ce1d4750..0d545911 100644 --- a/client/pages/GameDevelopment.tsx +++ b/client/pages/GameDevelopment.tsx @@ -184,7 +184,7 @@ export default function GameDevelopment() { useEffect(() => { fetch("/api/featured-studios") .then((r) => (r.ok ? r.json() : [])) - .then((data) => Array.isArray(data) ? setStudios(data) : undefined) + .then((data) => (Array.isArray(data) ? setStudios(data) : undefined)) .catch(() => undefined); }, []);