made login error timeout configurable

This commit is contained in:
victorAnumudu
2023-04-17 06:26:30 +01:00
parent 2ae9b73613
commit 94f2354785
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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
REACT_APP_SITE_ABOUT_US=https://www.float.sg/about
REACT_APP_LOGIN_ERROR_TIMEOUT=5000
+1 -1
View File
@@ -62,7 +62,7 @@ export function Login() {
} finally {
setTimeout(()=>{
setStatus('')
}, 5000)
}, Number(process.env.REACT_APP_LOGIN_ERROR_TIMEOUT))
}
},
})