Skip to content
Snippets Groups Projects
Commit d355f260 authored by shawn-dsilva's avatar shawn-dsilva
Browse files

fixes

parent 31065d06
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"proxy": "http://server:5000",
"proxy": "http://localhost:5000",
"homepage": "https://demos.shawndsilva.com/sessions-auth-app",
"eslintConfig": {
"extends": "react-app"
......
......@@ -51,11 +51,7 @@ export const register = ({ name, email, password }) => (dispatch) => {
axios
.post("/api/users/register", body, headers)
.then((res) =>{
dispatch(returnStatus(res.data, res.status, 'REGISTER_SUCCESS'))
dispatch({
type: REGISTER_SUCCESS,
payload: res.data
});
dispatch(returnStatus(res.data, res.status, 'REGISTER_SUCCESS'));
dispatch({ type: IS_LOADING })
})
.catch((err) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment