diff options
author | 2019-10-22 10:12:36 +0200 | |
---|---|---|
committer | 2019-10-22 10:12:36 +0200 | |
commit | 612ed5d3ea1d4c382f7a52b4ed9350eb68849085 (patch) | |
tree | b416e69ac2162c5637917a03ee517d1398e7ef83 /src/features | |
parent | Merge branch 'i18n' into release/5.4.0-beta.3 (diff) | |
download | ferdium-app-612ed5d3ea1d4c382f7a52b4ed9350eb68849085.tar.gz ferdium-app-612ed5d3ea1d4c382f7a52b4ed9350eb68849085.tar.zst ferdium-app-612ed5d3ea1d4c382f7a52b4ed9350eb68849085.zip |
don't show plan selection when user is premium (edge case)
Diffstat (limited to 'src/features')
-rw-r--r-- | src/features/planSelection/store.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/planSelection/store.js b/src/features/planSelection/store.js index 8622d4e5a..448e323ff 100644 --- a/src/features/planSelection/store.js +++ b/src/features/planSelection/store.js | |||
@@ -19,8 +19,8 @@ export default class PlanSelectionStore extends FeatureStore { | |||
19 | @observable hideOverlay = false; | 19 | @observable hideOverlay = false; |
20 | 20 | ||
21 | @computed get showPlanSelectionOverlay() { | 21 | @computed get showPlanSelectionOverlay() { |
22 | const { team } = this.stores.user; | 22 | const { team, isPremium } = this.stores.user; |
23 | if (team && !this.hideOverlay) { | 23 | if (team && !this.hideOverlay && !isPremium) { |
24 | return team.state === 'expired' && !team.userHasDowngraded; | 24 | return team.state === 'expired' && !team.userHasDowngraded; |
25 | } | 25 | } |
26 | 26 | ||