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

Function submitHandler

frontend/src/screens/PaymentScreen.js:12–16  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

10 const dispatch = useDispatch();
11
12 const submitHandler = (e) => {
13 e.preventDefault();
14 dispatch(savePayment({ paymentMethod }));
15 props.history.push('placeorder');
16 };
17 return (
18 <div>
19 <CheckoutSteps step1 step2 step3></CheckoutSteps>

Callers

nothing calls this directly

Calls 1

savePaymentFunction · 0.90

Tested by

no test coverage detected