added todo to deal with failed getcharacters request better

This commit is contained in:
StevanFreeborn committed 2022-06-25 23:46:54 -05:00
1 parent be5c41ee0a
commit 521705e45c
1 file changed
+1
+1
View File
@@ -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();