added setting error message back to null when handling try again
This commit is contained in:
1 parent
5329f6eaf9
commit
207032df05
1 file changed
+2
@@ -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