diff options
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r-- | src/stores/ServicesStore.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 109ac5cd7..ee47bf6db 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -13,6 +13,7 @@ import CachedRequest from './lib/CachedRequest'; | |||
13 | import { matchRoute } from '../helpers/routing-helpers'; | 13 | import { matchRoute } from '../helpers/routing-helpers'; |
14 | import { gaEvent, statsEvent } from '../lib/analytics'; | 14 | import { gaEvent, statsEvent } from '../lib/analytics'; |
15 | import { workspaceStore } from '../features/workspaces'; | 15 | import { workspaceStore } from '../features/workspaces'; |
16 | import { serviceLimitStore } from '../features/serviceLimit'; | ||
16 | 17 | ||
17 | const debug = require('debug')('Franz:ServiceStore'); | 18 | const debug = require('debug')('Franz:ServiceStore'); |
18 | 19 | ||
@@ -153,6 +154,8 @@ export default class ServicesStore extends Store { | |||
153 | 154 | ||
154 | // Actions | 155 | // Actions |
155 | @action async _createService({ recipeId, serviceData, redirect = true }) { | 156 | @action async _createService({ recipeId, serviceData, redirect = true }) { |
157 | if (serviceLimitStore.userHasReachedServiceLimit) return; | ||
158 | |||
156 | const data = this._cleanUpTeamIdAndCustomUrl(recipeId, serviceData); | 159 | const data = this._cleanUpTeamIdAndCustomUrl(recipeId, serviceData); |
157 | 160 | ||
158 | const response = await this.createServiceRequest.execute(recipeId, data)._promise; | 161 | const response = await this.createServiceRequest.execute(recipeId, data)._promise; |