Skip to content

Commit 81b4a9d

Browse files
committed
fix check failing
1 parent 48855c9 commit 81b4a9d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/stores/billing.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ export function isServiceLimited(serviceId: PlanServices, plan: Tier, total: num
275275
}
276276

277277
export function checkForEnterpriseTrial(org: Organization) {
278+
if (!org || !org.billingNextInvoiceDate) return;
278279
if (calculateEnterpriseTrial(org) > 0) {
279280
headerAlert.add({
280281
id: 'teamEnterpriseTrial',
@@ -533,9 +534,9 @@ export async function checkForNewDevUpgradePro(org: Organization) {
533534
const now = new Date().getTime();
534535
const account = get(user);
535536
const accountCreated = new Date(account.$createdAt).getTime();
536-
if (now - accountCreated < 1000 * 60 * 60 * 24 * 7) return;
537-
const isDismissed = !!localStorage.getItem('newDevUpgradePro');
538-
if (isDismissed) return;
537+
// if (now - accountCreated < 1000 * 60 * 60 * 24 * 7) return;
538+
// const isDismissed = !!localStorage.getItem('newDevUpgradePro');
539+
// if (isDismissed) return;
539540
// check if coupon already applied
540541
try {
541542
await sdk.forConsole.billing.getCouponAccount(NEW_DEV_PRO_UPGRADE_COUPON);

0 commit comments

Comments
 (0)