Fix flash bug (#1456)

This commit is contained in:
RachelElysia 2021-07-23 10:51:46 -04:00 committed by GitHub
parent 5a606422f7
commit 0c8537a1f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,9 +30,7 @@ const FlashMessage = ({
// Success alerts will not be visible after 4 seconds
if (alertType === "success") {
setTimeout(function () {
document.getElementById(`${klass}`).style.display = "none";
}, 4000);
setTimeout(onRemoveFlash, 4000);
}
return (