added todo to deal with failed getcharacters request better
This commit is contained in:
1 parent
be5c41ee0a
commit
521705e45c
1 file changed
+1
@@ -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