MCPcopy Create free account
hub / github.com/basir/node-react-ecommerce / submitHandler

Function submitHandler

frontend/src/screens/ProfileScreen.js:19–22  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

17 props.history.push("/signin");
18 }
19 const submitHandler = (e) => {
20 e.preventDefault();
21 dispatch(update({ userId: userInfo._id, email, name, password }))
22 }
23 const userUpdate = useSelector(state => state.userUpdate);
24 const { loading, success, error } = userUpdate;
25

Callers

nothing calls this directly

Calls 1

updateFunction · 0.90

Tested by

no test coverage detected