aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r--src/stores/ServicesStore.js3
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';
13import { matchRoute } from '../helpers/routing-helpers'; 13import { matchRoute } from '../helpers/routing-helpers';
14import { gaEvent, statsEvent } from '../lib/analytics'; 14import { gaEvent, statsEvent } from '../lib/analytics';
15import { workspaceStore } from '../features/workspaces'; 15import { workspaceStore } from '../features/workspaces';
16import { serviceLimitStore } from '../features/serviceLimit';
16 17
17const debug = require('debug')('Franz:ServiceStore'); 18const 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;