From 905c3ee1297052aba1ea183264c6c4eb127509c2 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Fri, 22 Mar 2019 01:29:56 +0200 Subject: [PATCH] Add currentUser id to components showing individiual Stripe account. --- src/components/EditListingWizard/EditListingWizard.js | 1 + .../PayoutPreferencesPage/PayoutPreferencesPage.js | 1 + .../__snapshots__/PayoutPreferencesPage.test.js.snap | 10 ++++++++++ 3 files changed, 12 insertions(+) diff --git a/src/components/EditListingWizard/EditListingWizard.js b/src/components/EditListingWizard/EditListingWizard.js index d844cfc6..c8f92511 100644 --- a/src/components/EditListingWizard/EditListingWizard.js +++ b/src/components/EditListingWizard/EditListingWizard.js @@ -288,6 +288,7 @@ class EditListingWizard extends Component { className={css.payoutDetails} inProgress={fetchInProgress} createStripeAccountError={errors ? errors.createStripeAccountError : null} + currentUserId={this.props.currentUser.id} onChange={onPayoutDetailsFormChange} onSubmit={this.handlePayoutSubmit} /> diff --git a/src/containers/PayoutPreferencesPage/PayoutPreferencesPage.js b/src/containers/PayoutPreferencesPage/PayoutPreferencesPage.js index 224a1fb4..0ff721e7 100644 --- a/src/containers/PayoutPreferencesPage/PayoutPreferencesPage.js +++ b/src/containers/PayoutPreferencesPage/PayoutPreferencesPage.js @@ -87,6 +87,7 @@ export const PayoutPreferencesPageComponent = props => { createStripeAccountError={createStripeAccountError} onChange={onPayoutDetailsFormChange} onSubmit={onPayoutDetailsFormSubmit} + currentUserId={ensuredCurrentUser.id} /> ) : null; diff --git a/src/containers/PayoutPreferencesPage/__snapshots__/PayoutPreferencesPage.test.js.snap b/src/containers/PayoutPreferencesPage/__snapshots__/PayoutPreferencesPage.test.js.snap index 82a13811..ca06ee77 100644 --- a/src/containers/PayoutPreferencesPage/__snapshots__/PayoutPreferencesPage.test.js.snap +++ b/src/containers/PayoutPreferencesPage/__snapshots__/PayoutPreferencesPage.test.js.snap @@ -170,6 +170,11 @@ exports[`PayoutPreferencesPage matches snapshot with Stripe not connected 1`] =