added setting error message back to null when handling try again

This commit is contained in:
StevanFreeborn
2022-06-29 20:20:52 -05:00
parent 5329f6eaf9
commit 207032df05
+2
View File
@@ -55,6 +55,8 @@ export default function Home() {
const handleTryAgain = async () => {
setErrorMessage(null);
if (errorMessage === 'Failed to load characters.') return await getCharacters();
}