aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/serviceLimit/store.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/serviceLimit/store.js')
-rw-r--r--src/features/serviceLimit/store.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/features/serviceLimit/store.js b/src/features/serviceLimit/store.js
index 9836c5f51..6510e2872 100644
--- a/src/features/serviceLimit/store.js
+++ b/src/features/serviceLimit/store.js
@@ -2,7 +2,7 @@ import { computed, observable } from 'mobx';
2import { FeatureStore } from '../utils/FeatureStore'; 2import { FeatureStore } from '../utils/FeatureStore';
3import { DEFAULT_SERVICE_LIMIT } from '.'; 3import { DEFAULT_SERVICE_LIMIT } from '.';
4 4
5const debug = require('debug')('Franz:feature:serviceLimit:store'); 5const debug = require('debug')('Ferdi:feature:serviceLimit:store');
6 6
7export class ServiceLimitStore extends FeatureStore { 7export class ServiceLimitStore extends FeatureStore {
8 @observable isServiceLimitEnabled = false; 8 @observable isServiceLimitEnabled = false;
@@ -12,7 +12,7 @@ export class ServiceLimitStore extends FeatureStore {
12 this.stores = stores; 12 this.stores = stores;
13 this.actions = actions; 13 this.actions = actions;
14 14
15 this.isServiceLimitEnabled = true; 15 this.isServiceLimitEnabled = false;
16 } 16 }
17 17
18 stop() { 18 stop() {
@@ -22,9 +22,10 @@ export class ServiceLimitStore extends FeatureStore {
22 } 22 }
23 23
24 @computed get userHasReachedServiceLimit() { 24 @computed get userHasReachedServiceLimit() {
25 if (!this.isServiceLimitEnabled) return false; 25 return false;
26 // if (!this.isServiceLimitEnabled) return false;
26 27
27 return this.serviceLimit !== 0 && this.serviceCount >= this.serviceLimit; 28 // return this.serviceLimit !== 0 && this.serviceCount >= this.serviceLimit;
28 } 29 }
29 30
30 @computed get serviceLimit() { 31 @computed get serviceLimit() {