Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-binit committed Oct 24, 2024
1 parent bdc478f commit cdc8713
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/pages/home/tsx/components/CallRobotSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ function get_indicator(status_str) {
}



function get_action(status_str, robot_name) {
switch (status_str) {
case "online":
Expand All @@ -87,6 +86,7 @@ function get_action(status_str, robot_name) {
}
}


const CallRobotItem = (props: {
name: String;
status: String;
Expand Down
20 changes: 10 additions & 10 deletions src/pages/home/tsx/components/LoginView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,21 +123,21 @@ export const LoginView = (props) => {
let isValid = true;

if (!email.value || !/\S+@\S+\.\S+/.test(email.value)) {
setEmailError(true);
setEmailErrorMessage('Please enter a valid email address.');
isValid = false;
setEmailError(true);
setEmailErrorMessage('Please enter a valid email address.');
isValid = false;
} else {
setEmailError(false);
setEmailErrorMessage('');
setEmailError(false);
setEmailErrorMessage('');
}

if (!password.value || password.value.length < 6) {
setPasswordError(true);
setPasswordErrorMessage('Password must be at least 6 characters long.');
isValid = false;
setPasswordError(true);
setPasswordErrorMessage('Password must be at least 6 characters long.');
isValid = false;
} else {
setPasswordError(false);
setPasswordErrorMessage('');
setPasswordError(false);
setPasswordErrorMessage('');
}

return isValid;
Expand Down

0 comments on commit cdc8713

Please sign in to comment.