Skip to content

Commit 8fd5530

Browse files
committed
Merge branch 'pr/1811' into correct-db-casing
2 parents 14e5767 + 0e6aae6 commit 8fd5530

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

client/src/components/auth/Auth.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ const Auth = () => {
8383
};
8484

8585
function handleInputChange(e) {
86-
const inputValue = e.currentTarget.value.toString();
86+
const inputValue = e.currentTarget.value.toString().toLowerCase();
8787
validateEmail();
8888
if (!inputValue) {
8989
setIsDisabled(true);
9090
showError('Please enter a valid email address');
9191
} else {
9292
setIsDisabled(false);
9393
setIsError(false);
94-
setEmail(e.currentTarget.value.toString());
94+
setEmail(e.currentTarget.value.toString().toLowerCase());
9595
}
9696
}
9797

client/src/components/dashboard/AddTeamMember.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "../../sass/AddTeamMember.scss";
44
const AddTeamMember = (props) => {
55
const [email, setEmail] = useState("");
66

7-
const handleInputChange = (e) => setEmail(e.currentTarget.value);
7+
const handleInputChange = (e) => setEmail(e.currentTarget.value.toLowerCase());
88

99
return (
1010
<div className="flex-container">

client/src/components/presentational/newUserForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const NewUserForm = (props) => {
6363
type="email"
6464
name="email"
6565
placeholder="Email Address"
66-
value={props.formInput.email.toString()}
66+
value={props.formInput.email.toString().toLowerCase()}
6767
onChange={props.handleInputChange}
6868
aria-label="Email Address"
6969
required

client/src/components/presentational/returnUserForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const ReturnUserForm = (props) => {
2121
type="email"
2222
name="email"
2323
placeholder="Email Address"
24-
value={props.formInput.email.toString()}
24+
value={props.formInput.email.toString().toLowerCase()}
2525
onChange={props.handleInputChange}
2626
aria-label="Email Address"
2727
required

client/src/pages/CheckInForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ const CheckInForm = (props) => {
308308
const currMonth = parseInt(moment().format('MM'));
309309
const yearJoined = parseInt(year);
310310
const monthJoined = parseInt(moment(month + ' 9, 2020').format('MM'));
311-
311+
312312
if (
313313
yearJoined > currYear ||
314314
(yearJoined === currYear && monthJoined > currMonth)

0 commit comments

Comments
 (0)