1
0

Updated the error timeout to 5000 instead of 30000

This commit is contained in:
Mathias Wagner 2023-11-20 21:19:24 +01:00
parent 03842b5e40
commit 3bb64ff767
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -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]);