web: fix trial expired notice shows to new users

This commit is contained in:
ammarahm-ed
2023-06-09 08:03:52 +05:00
committed by Ammar Ahmed
parent 49df1bcd9e
commit ba900b3a0f

View File

@@ -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;