From 489c7934bfc6a69dc8954df39008544c63dbb7e8 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 25 Jul 2018 09:24:55 -0400 Subject: [PATCH] showPremiumCallout always after sync --- src/app/vault/vault.component.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/vault/vault.component.ts b/src/app/vault/vault.component.ts index 3a04b9509e..751f8d0b56 100644 --- a/src/app/vault/vault.component.ts +++ b/src/app/vault/vault.component.ts @@ -82,7 +82,7 @@ export class VaultComponent implements OnInit { const hasEncKey = await this.cryptoService.hasEncKey(); this.showUpdateKey = !hasEncKey; const isPremium = await this.tokenService.getPremium(); - this.showPremiumCallout = !this.showVerifyEmail && !isPremium && !this.platformUtilsService.isSelfHost(); + this.showPremiumCallout = ; this.route.queryParams.subscribe(async (params) => { await this.syncService.fullSync(false); @@ -91,9 +91,8 @@ export class VaultComponent implements OnInit { this.organizationsComponent.load(), ]); - if (this.showPremiumCallout) { - this.showPremiumCallout = !(await this.inOrgWithPremium()); - } + this.showPremiumCallout = !this.showVerifyEmail && !isPremium && + !this.platformUtilsService.isSelfHost() && !(await this.inOrgWithPremium()); if (params == null) { this.groupingsComponent.selectedAll = true;