added setting error message back to null when handling try again
This commit is contained in:
@@ -55,6 +55,8 @@ export default function Home() {
|
||||
|
||||
const handleTryAgain = async () => {
|
||||
|
||||
setErrorMessage(null);
|
||||
|
||||
if (errorMessage === 'Failed to load characters.') return await getCharacters();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user