aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/UserStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/UserStore.js')
-rw-r--r--src/stores/UserStore.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js
index b652098f9..735e8f886 100644
--- a/src/stores/UserStore.js
+++ b/src/stores/UserStore.js
@@ -77,6 +77,8 @@ export default class UserStore extends Store {
77 77
78 @observable logoutReason = null; 78 @observable logoutReason = null;
79 79
80 fetchUserInfoInterval = null;
81
80 constructor(...args) { 82 constructor(...args) {
81 super(...args); 83 super(...args);
82 84
@@ -161,7 +163,7 @@ export default class UserStore extends Store {
161 } 163 }
162 164
163 @computed get isPremiumOverride() { 165 @computed get isPremiumOverride() {
164 return ((!this.team || !this.team.plan) && this.isPremium) || (this.team.state === 'expired' && this.isPremium); 166 return ((!this.team || !this.team.plan) && this.isPremium) || (this.team && this.team.state === 'expired' && this.isPremium);
165 } 167 }
166 168
167 @computed get isPersonal() { 169 @computed get isPersonal() {