diff --git a/.env b/.env index ee32553..9f61bae 100644 --- a/.env +++ b/.env @@ -17,4 +17,6 @@ REACT_APP_THEME_API_URL=https://preview.keenthemes.com/theme-api/api REACT_APP_SITE_CONTACT_US=https://www.float.sg/contact REACT_APP_SITE_TERMS=https://www.float.sg/terms -REACT_APP_SITE_ABOUT_US=https://www.float.sg/about \ No newline at end of file +REACT_APP_SITE_ABOUT_US=https://www.float.sg/about + +REACT_APP_LOGIN_ERROR_TIMEOUT=5000 \ No newline at end of file diff --git a/src/app/modules/auth/components/Login.tsx b/src/app/modules/auth/components/Login.tsx index 1d07f09..4371d9d 100644 --- a/src/app/modules/auth/components/Login.tsx +++ b/src/app/modules/auth/components/Login.tsx @@ -62,7 +62,7 @@ export function Login() { } finally { setTimeout(()=>{ setStatus('') - }, 5000) + }, Number(process.env.REACT_APP_LOGIN_ERROR_TIMEOUT)) } }, })