diff --git a/client/src/pages/home.js b/client/src/pages/home.js index 3cd59be..3605abc 100644 --- a/client/src/pages/home.js +++ b/client/src/pages/home.js @@ -55,6 +55,8 @@ export default function Home() { const handleTryAgain = async () => { + setErrorMessage(null); + if (errorMessage === 'Failed to load characters.') return await getCharacters(); }