diff --git a/src/components/EditListingWizard/EditListingWizard.js b/src/components/EditListingWizard/EditListingWizard.js index 4dc5b903..d844cfc6 100644 --- a/src/components/EditListingWizard/EditListingWizard.js +++ b/src/components/EditListingWizard/EditListingWizard.js @@ -172,9 +172,8 @@ class EditListingWizard extends Component { } handlePayoutSubmit(values) { - const { fname: firstName, lname: lastName, ...rest } = values; this.props - .onPayoutDetailsSubmit({ firstName, lastName, ...rest }) + .onPayoutDetailsSubmit(values) .then(() => { this.setState({ showPayoutDetails: false }); this.props.onManageDisableScrolling('EditListingWizard.payoutModal', false); diff --git a/src/containers/PayoutPreferencesPage/PayoutPreferencesPage.js b/src/containers/PayoutPreferencesPage/PayoutPreferencesPage.js index 320bbbf9..224a1fb4 100644 --- a/src/containers/PayoutPreferencesPage/PayoutPreferencesPage.js +++ b/src/containers/PayoutPreferencesPage/PayoutPreferencesPage.js @@ -76,11 +76,6 @@ export const PayoutPreferencesPageComponent = props => { message = ; } - const handlePayoutDetailsSubmit = values => { - const { fname: firstName, lname: lastName, ...rest } = values; - onPayoutDetailsFormSubmit({ firstName, lastName, ...rest }); - }; - const showForm = currentUserLoaded && (payoutDetailsSaveInProgress || payoutDetailsSaved || !stripeConnected); const form = showForm ? ( @@ -91,7 +86,7 @@ export const PayoutPreferencesPageComponent = props => { submitButtonText={intl.formatMessage({ id: 'PayoutPreferencesPage.submitButtonText' })} createStripeAccountError={createStripeAccountError} onChange={onPayoutDetailsFormChange} - onSubmit={handlePayoutDetailsSubmit} + onSubmit={onPayoutDetailsFormSubmit} /> ) : null;