Skip to content

Commit e7f5765

Browse files
committed
clean
1 parent 1b599c5 commit e7f5765

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ yarn-error.log*
77
lerna-debug.log*
88
.env
99
*/data
10+
*lock
11+
*DS_Store
1012
# Diagnostic reports (https://nodejs.org/api/report.html)
1113
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
1214

frontend/src/screens/RegisterScreen.js

-19
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,7 @@ const RegisterScreen = ({ location, history }) => {
3030
const userLogin = useSelector((state) => state.userLogin);
3131
const { userInfo: loginUserInfo } = userLogin;
3232

33-
// const userConfirmEmail = useSelector((state) => state.userConfirmEmail);
34-
// const {
35-
// requested: emailRequested,
36-
// confirmed: emailConfirmed,
37-
// } = userConfirmEmail;
38-
39-
//const redirect = location.search ? location.search.split("=")[1] : "/";
40-
// const _id = location.search ? location.search.split("=")[1] : null;
41-
// console.log(_id);
42-
4333
useEffect(() => {
44-
// user clicked on email confirmation link
45-
// if (_id) {
46-
// console.log("confirming email...");
47-
// // dispatch(confirmEmail(_id));
48-
// // history.push("/");
49-
// // user is registered and confirmed
50-
// } else {
51-
// // history.push("/register");
52-
// }
5334
if (loginUserInfo) {
5435
history.push("/");
5536
} else if (registerUserInfo) {

0 commit comments

Comments
 (0)