diff options
Diffstat (limited to 'src/containers/auth/SignupScreen.js')
-rw-r--r-- | src/containers/auth/SignupScreen.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/containers/auth/SignupScreen.js b/src/containers/auth/SignupScreen.js index 42ee09f33..38c5dfb43 100644 --- a/src/containers/auth/SignupScreen.js +++ b/src/containers/auth/SignupScreen.js | |||
@@ -14,16 +14,7 @@ export default @inject('stores', 'actions') @observer class SignupScreen extends | |||
14 | }; | 14 | }; |
15 | 15 | ||
16 | onSignup(values) { | 16 | onSignup(values) { |
17 | const { actions, stores } = this.props; | 17 | const { actions } = this.props; |
18 | |||
19 | const { canSkipTrial, defaultTrialPlan, pricingConfig } = stores.features.anonymousFeatures; | ||
20 | |||
21 | if (!canSkipTrial) { | ||
22 | Object.assign(values, { | ||
23 | plan: defaultTrialPlan, | ||
24 | currency: pricingConfig.currencyID, | ||
25 | }); | ||
26 | } | ||
27 | 18 | ||
28 | actions.user.signup(values); | 19 | actions.user.signup(values); |
29 | } | 20 | } |
@@ -33,7 +24,7 @@ export default @inject('stores', 'actions') @observer class SignupScreen extends | |||
33 | 24 | ||
34 | return ( | 25 | return ( |
35 | <Signup | 26 | <Signup |
36 | onSubmit={values => this.onSignup(values)} | 27 | onSubmit={(values) => this.onSignup(values)} |
37 | isSubmitting={stores.user.signupRequest.isExecuting} | 28 | isSubmitting={stores.user.signupRequest.isExecuting} |
38 | loginRoute={stores.user.loginRoute} | 29 | loginRoute={stores.user.loginRoute} |
39 | changeServerRoute={stores.user.changeServerRoute} | 30 | changeServerRoute={stores.user.changeServerRoute} |