Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix trial expired notice shows to new users

ammarahm-edba900b3a0faf
diff --git a/apps/web/src/common/index.js b/apps/web/src/common/index.js
index 46be4fb33..3072a06d3 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;