Skip to content

Commit 9a971a0

Browse files
password conditon removed
1 parent b70f4a2 commit 9a971a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ui/layouts/session/Login/Form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const Form: React.FC = () => {
2525
login();
2626
};
2727

28-
const BUTTON_DISABLED = username.trim() === '' || password.trim() === '';
28+
const BUTTON_DISABLED = username.trim() === '';
2929

3030
useEnterKeyPress(() => {
3131
if (!BUTTON_DISABLED) login();

src/ui/layouts/session/Login/useService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const useService = (): ServiceInterface => {
3434
login: () => {
3535
setLoading(true);
3636
setHasSubmittedWithErrors(true);
37-
if (username.trim() !== '' && password.trim() !== '') {
37+
if (username.trim() !== '') {
3838
dispatch(
3939
loginAction({
4040
password,

0 commit comments

Comments
 (0)