update delay

This commit is contained in:
Christopher committed 2021-03-01 20:01:16 +01:00
1 parent 2a9f475cdc
commit 8bca955ad7
1 file changed
+1 -1
+1 -1
View File
@@ -11,7 +11,7 @@ function SnackbarProvider({ children }) {
clearTimeout(timer.current);
timer.current = setTimeout(() => {
setAlert(null);
}, 1000);
}, 2000);
}
return () => clearTimeout(timer.current);
}, [alert]);