()
| 23 | const dispatch = useDispatch(); |
| 24 | |
| 25 | const placeOrderHandler = () => { |
| 26 | // create an order |
| 27 | dispatch(createOrder({ |
| 28 | orderItems: cartItems, shipping, payment, itemsPrice, shippingPrice, |
| 29 | taxPrice, totalPrice |
| 30 | })); |
| 31 | } |
| 32 | useEffect(() => { |
| 33 | if (success) { |
| 34 | props.history.push("/order/" + order._id); |
nothing calls this directly
no test coverage detected