From f5a34a90735fdc08382e4d4e55ccae0fb81ea4c2 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Fri, 9 Jun 2023 08:03:52 +0500 Subject: [PATCH] web: fix trial expired notice shows to new users --- apps/web/src/common/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/common/index.js b/apps/web/src/common/index.js index 24ce89600..6e264e0fd 100644 --- a/apps/web/src/common/index.js +++ b/apps/web/src/common/index.js @@ -199,7 +199,7 @@ export async function showUpgradeReminderDialogs() { if (isTesting()) return; const user = userstore.get().user; - if (!user) return; + if (!user || !user.subscription || user.subscription?.expiry === 0) return; const consumed = totalSubscriptionConsumed(user); const isTrial = user?.subscription?.type === SUBSCRIPTION_STATUS.TRIAL;