aboutsummaryrefslogtreecommitdiff
path: root/src/pages/LoginPage/LoginPage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/LoginPage/LoginPage.tsx')
-rw-r--r--src/pages/LoginPage/LoginPage.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/LoginPage/LoginPage.tsx b/src/pages/LoginPage/LoginPage.tsx
index 2bc7e5a..335cbb1 100644
--- a/src/pages/LoginPage/LoginPage.tsx
+++ b/src/pages/LoginPage/LoginPage.tsx
@@ -49,11 +49,11 @@ const LoginPage: React.FC = () => {
};
const handleSubmit = async () => {
- const name = nameRef.current?.value;
+ const name = nameRef.current?.value?.toLowerCase();
const password = passwordRef.current?.value;
if (name && password) {
login(name, password, remember).then(success => {
- if (success) history.push(`/profile/${login}`);
+ if (success) history.push(`/profile/${name}`);
else setError(true);
});
}