Updated the error timeout to 5000 instead of 30000
This commit is contained in:
parent
03842b5e40
commit
3bb64ff767
@ -26,9 +26,10 @@ export const Code = ({setState}) => {
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (!error) return;
|
||||
const timeout = setTimeout(() => {
|
||||
setError("");
|
||||
}, 30000);
|
||||
}, 5000);
|
||||
|
||||
return () => clearTimeout(timeout);
|
||||
}, [error]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user