We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b70f4a2 commit 9a971a0Copy full SHA for 9a971a0
src/ui/layouts/session/Login/Form.tsx
@@ -25,7 +25,7 @@ export const Form: React.FC = () => {
25
login();
26
};
27
28
- const BUTTON_DISABLED = username.trim() === '' || password.trim() === '';
+ const BUTTON_DISABLED = username.trim() === '';
29
30
useEnterKeyPress(() => {
31
if (!BUTTON_DISABLED) login();
src/ui/layouts/session/Login/useService.ts
@@ -34,7 +34,7 @@ export const useService = (): ServiceInterface => {
34
login: () => {
35
setLoading(true);
36
setHasSubmittedWithErrors(true);
37
- if (username.trim() !== '' && password.trim() !== '') {
+ if (username.trim() !== '') {
38
dispatch(
39
loginAction({
40
password,
0 commit comments