From 3bb64ff767047d0b95b0be1e53e95a7558656c92 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Mon, 20 Nov 2023 21:19:24 +0100 Subject: [PATCH] Updated the error timeout to 5000 instead of 30000 --- client/src/pages/Join/states/Code/Code.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/pages/Join/states/Code/Code.jsx b/client/src/pages/Join/states/Code/Code.jsx index 10699c5..d3c940b 100644 --- a/client/src/pages/Join/states/Code/Code.jsx +++ b/client/src/pages/Join/states/Code/Code.jsx @@ -26,9 +26,10 @@ export const Code = ({setState}) => { } useEffect(() => { + if (!error) return; const timeout = setTimeout(() => { setError(""); - }, 30000); + }, 5000); return () => clearTimeout(timeout); }, [error]);