added todo to deal with failed getcharacters request better
This commit is contained in:
@@ -16,6 +16,7 @@ export default function Home() {
|
|||||||
|
|
||||||
const res = await characterService.getCharacters();
|
const res = await characterService.getCharacters();
|
||||||
|
|
||||||
|
// TODO: Handle a failed request.
|
||||||
if (!res.ok) return;
|
if (!res.ok) return;
|
||||||
|
|
||||||
const characters = await res.json();
|
const characters = await res.json();
|
||||||
|
|||||||
Reference in New Issue
Block a user