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(() => {
|
useEffect(() => {
|
||||||
|
if (!error) return;
|
||||||
const timeout = setTimeout(() => {
|
const timeout = setTimeout(() => {
|
||||||
setError("");
|
setError("");
|
||||||
}, 30000);
|
}, 5000);
|
||||||
|
|
||||||
return () => clearTimeout(timeout);
|
return () => clearTimeout(timeout);
|
||||||
}, [error]);
|
}, [error]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user