diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-09-05 09:49:25 +0200 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-09-05 09:49:25 +0200 |
commit | 24d0223fee38c36ec19d9c662579dba7d787f8b4 (patch) | |
tree | 17a50e725cef1266506fc9ac6352c15a120cba78 /src/stores | |
parent | don't warn on react/destructuring-assignment (diff) | |
download | ferdium-app-24d0223fee38c36ec19d9c662579dba7d787f8b4.tar.gz ferdium-app-24d0223fee38c36ec19d9c662579dba7d787f8b4.tar.zst ferdium-app-24d0223fee38c36ec19d9c662579dba7d787f8b4.zip |
polishing
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/UIStore.js | 1 | ||||
-rw-r--r-- | src/stores/UserStore.js | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/stores/UIStore.js b/src/stores/UIStore.js index 2c785111f..9680c5bcc 100644 --- a/src/stores/UIStore.js +++ b/src/stores/UIStore.js | |||
@@ -46,7 +46,6 @@ export default class UIStore extends Store { | |||
46 | // Actions | 46 | // Actions |
47 | @action _openSettings({ path = '/settings' }) { | 47 | @action _openSettings({ path = '/settings' }) { |
48 | const settingsPath = path !== '/settings' ? `/settings/${path}` : path; | 48 | const settingsPath = path !== '/settings' ? `/settings/${path}` : path; |
49 | console.log(settingsPath); | ||
50 | this.stores.router.push(settingsPath); | 49 | this.stores.router.push(settingsPath); |
51 | } | 50 | } |
52 | 51 | ||
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; |