(e)
| 30 | }; |
| 31 | }, [productSaveSuccess]); |
| 32 | const submitHandler = (e) => { |
| 33 | e.preventDefault(); |
| 34 | // dispatch actions |
| 35 | dispatch( |
| 36 | saveProductReview(props.match.params.id, { |
| 37 | name: userInfo.name, |
| 38 | rating: rating, |
| 39 | comment: comment, |
| 40 | }) |
| 41 | ); |
| 42 | }; |
| 43 | const handleAddToCart = () => { |
| 44 | props.history.push('/cart/' + props.match.params.id + '?qty=' + qty); |
| 45 | }; |
nothing calls this directly
no test coverage detected