Opravy dle SonarLint - klient

This commit is contained in:
2026-01-13 15:35:00 +01:00
parent e03ba45415
commit c264f9921e
11 changed files with 55 additions and 80 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ export default function Login() {
}, [auth]);
const doLogin = useCallback(async () => {
const length = loginRef?.current?.value.length && loginRef.current.value.replace(/\s/g, '').length
const length = loginRef?.current?.value.length && loginRef.current.value.replaceAll(/\s/g, '').length
if (length) {
const response = await login({ body: { login: loginRef.current?.value } });
if (response.data) {