Skip to content

Commit

Permalink
removed validate email, read note in pr
Browse files Browse the repository at this point in the history
  • Loading branch information
pluto-bell committed Nov 12, 2024
1 parent 2a4b402 commit 66f9339
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions client/src/pages/CheckInForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import NewUserForm from './../components/presentational/newUserForm';
import ReturnUserForm from './../components/presentational/returnUserForm';
import { REACT_APP_CUSTOM_REQUEST_HEADER as headerToSend } from '../utils/globalSettings';
import { format } from 'date-fns';
import { validateEmail } from '../utils/validateEmail'

import '../sass/CheckIn.scss';

Expand Down Expand Up @@ -304,12 +303,6 @@ const CheckInForm = (props) => {
ready = false;
}

if (userForm.email.length > 0 && !validateEmail(userForm.email) ) {
setIsError(true);
setErrorMessage("Please use a valid email address");
ready = false;
}

const currYear = parseInt(moment().format('YYYY'));
const currMonth = parseInt(moment().format('MM'));
const yearJoined = parseInt(year);
Expand Down
4 changes: 0 additions & 4 deletions client/src/utils/validateEmail.js

This file was deleted.

0 comments on commit 66f9339

Please sign in to comment.