From 7452f7ecb63ae3b3222f448cd09d5a1c5bbc45af Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Sun, 1 Oct 2017 17:07:26 -0500 Subject: [PATCH] fix(payform): cleaner logic for input caption --- app/components/Form/PayForm.js | 30 ++++++++++++------------------ app/reducers/payment.js | 2 +- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/app/components/Form/PayForm.js b/app/components/Form/PayForm.js index 60ec9dea..4a1edc8f 100644 --- a/app/components/Form/PayForm.js +++ b/app/components/Form/PayForm.js @@ -67,24 +67,18 @@ class PayForm extends Component { {inputCaption}
(dispatch) => { // TODO: Add payment to state, not a total re-fetch export const paymentSuccessful = () => (dispatch) => { // Dispatch successful payment to stop loading screen - dispatch(paymentSuccessfull()) + dispatchs(paymentSuccessfull()) // Close the form modal once the payment was succesful dispatch(setFormType(null))