File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import "../../sass/AddTeamMember.scss";
44const 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" >
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments