From ab78d8ad9097ce92eae337f319245819ba93ca40 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Thu, 17 Oct 2019 10:58:45 +0200 Subject: polishing --- src/containers/settings/AccountScreen.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/containers/settings/AccountScreen.js') diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js index b08b52e6f..88ecd55d5 100644 --- a/src/containers/settings/AccountScreen.js +++ b/src/containers/settings/AccountScreen.js @@ -35,12 +35,15 @@ export default @inject('stores', 'actions') @observer class AccountScreen extend render() { const { user, payment, features } = this.props.stores; - const { user: userActions } = this.props.actions; + const { + user: userActions, + payment: paymentActions, + } = this.props.actions; const isLoadingUserInfo = user.getUserInfoRequest.isExecuting; const isLoadingPlans = payment.plansRequest.isExecuting; - const { upgradeAccount } = payment; + const { upgradeAccount } = paymentActions; return ( @@ -57,7 +60,7 @@ export default @inject('stores', 'actions') @observer class AccountScreen extend isLoadingDeleteAccount={user.deleteAccountRequest.isExecuting} isDeleteAccountSuccessful={user.deleteAccountRequest.wasExecuted && !user.deleteAccountRequest.isError} openEditAccount={() => this.handleWebsiteLink('/user/profile')} - upgradeToPro={() => upgradeAccount({ planId: features.features.pricingConfig.pro.yearly.id })} + upgradeToPro={() => upgradeAccount({ planId: features.features.pricingConfig.plans.pro.yearly.id })} openBilling={() => this.handleWebsiteLink('/user/billing')} openInvoices={() => this.handleWebsiteLink('/user/invoices')} /> -- cgit v1.2.3-54-g00ecf