aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/UserStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-09-05 09:49:25 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-09-05 09:49:25 +0200
commit24d0223fee38c36ec19d9c662579dba7d787f8b4 (patch)
tree17a50e725cef1266506fc9ac6352c15a120cba78 /src/stores/UserStore.js
parentdon't warn on react/destructuring-assignment (diff)
downloadferdium-app-24d0223fee38c36ec19d9c662579dba7d787f8b4.tar.gz
ferdium-app-24d0223fee38c36ec19d9c662579dba7d787f8b4.tar.zst
ferdium-app-24d0223fee38c36ec19d9c662579dba7d787f8b4.zip
polishing
Diffstat (limited to 'src/stores/UserStore.js')
-rw-r--r--src/stores/UserStore.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js
index 7ac7d2375..d44208923 100644
--- a/src/stores/UserStore.js
+++ b/src/stores/UserStore.js
@@ -168,9 +168,9 @@ export default class UserStore extends Store {
168 } 168 }
169 169
170 @computed get isPro() { 170 @computed get isPro() {
171 if (!this.team.plan && this.isPremium) return true; 171 if ((!this.team.plan || this.team.state !== 'expired') && this.isPremium) return true;
172 172
173 if (!this.team.plan) return false; 173 if ((!this.team.plan || this.team.state === 'expired')) return false;
174 const plan = getPlan(this.team.plan); 174 const plan = getPlan(this.team.plan);
175 175
176 return plan === PLANS.PRO; 176 return plan === PLANS.PRO;