diff options
Diffstat (limited to 'src/containers/auth/SetupAssistantScreen.js')
-rw-r--r-- | src/containers/auth/SetupAssistantScreen.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/containers/auth/SetupAssistantScreen.js b/src/containers/auth/SetupAssistantScreen.js index 2a8f2c010..eaf3fda8a 100644 --- a/src/containers/auth/SetupAssistantScreen.js +++ b/src/containers/auth/SetupAssistantScreen.js | |||
@@ -12,6 +12,7 @@ import RecipesStore from '../../stores/RecipesStore'; | |||
12 | import UserStore from '../../stores/UserStore'; | 12 | import UserStore from '../../stores/UserStore'; |
13 | 13 | ||
14 | export default @inject('stores', 'actions') @observer class SetupAssistantScreen extends Component { | 14 | export default @inject('stores', 'actions') @observer class SetupAssistantScreen extends Component { |
15 | // TODO: Why are these hardcoded here? Do they need to conform to specific services in the packaged recipes? If so, its more important to fix this | ||
15 | services = { | 16 | services = { |
16 | whatsapp: { | 17 | whatsapp: { |
17 | name: 'WhatsApp', | 18 | name: 'WhatsApp', |
@@ -56,14 +57,14 @@ export default @inject('stores', 'actions') @observer class SetupAssistantScreen | |||
56 | } | 57 | } |
57 | 58 | ||
58 | async setupServices(serviceConfig) { | 59 | async setupServices(serviceConfig) { |
59 | const { stores: { services, router, user } } = this.props; | 60 | const { stores: { services } } = this.props; |
60 | console.log(serviceConfig); | 61 | console.log(serviceConfig); |
61 | 62 | ||
62 | this.setState({ | 63 | this.setState({ |
63 | isSettingUpServices: true, | 64 | isSettingUpServices: true, |
64 | }); | 65 | }); |
65 | 66 | ||
66 | // The store requests are not build for paralell requests so we need to finish one request after another | 67 | // The store requests are not build for parallel requests so we need to finish one request after another |
67 | for (const config of serviceConfig) { | 68 | for (const config of serviceConfig) { |
68 | const serviceData = { | 69 | const serviceData = { |
69 | name: this.services[config.id].name, | 70 | name: this.services[config.id].name, |
@@ -96,10 +97,6 @@ export default @inject('stores', 'actions') @observer class SetupAssistantScreen | |||
96 | this.setState({ | 97 | this.setState({ |
97 | isSettingUpServices: false, | 98 | isSettingUpServices: false, |
98 | }); | 99 | }); |
99 | |||
100 | await sleep(100); | ||
101 | |||
102 | router.push(user.pricingRoute); | ||
103 | } | 100 | } |
104 | 101 | ||
105 | render() { | 102 | render() { |