Prettier format pending files
This commit is contained in:
parent
0eb081aa95
commit
38216dc1c2
2 changed files with 2 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ export default function Admin() {
|
||||||
setDemoProfiles([]);
|
setDemoProfiles([]);
|
||||||
}
|
}
|
||||||
fetch("/api/featured-studios")
|
fetch("/api/featured-studios")
|
||||||
.then((r) => r.ok ? r.json() : [])
|
.then((r) => (r.ok ? r.json() : []))
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
if (Array.isArray(data) && data.length) setStudios(data);
|
if (Array.isArray(data) && data.length) setStudios(data);
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ export default function GameDevelopment() {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetch("/api/featured-studios")
|
fetch("/api/featured-studios")
|
||||||
.then((r) => (r.ok ? r.json() : []))
|
.then((r) => (r.ok ? r.json() : []))
|
||||||
.then((data) => Array.isArray(data) ? setStudios(data) : undefined)
|
.then((data) => (Array.isArray(data) ? setStudios(data) : undefined))
|
||||||
.catch(() => undefined);
|
.catch(() => undefined);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue