We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81b4a9d commit b8e2281Copy full SHA for b8e2281
src/lib/stores/billing.ts
@@ -534,9 +534,9 @@ export async function checkForNewDevUpgradePro(org: Organization) {
534
const now = new Date().getTime();
535
const account = get(user);
536
const accountCreated = new Date(account.$createdAt).getTime();
537
- // if (now - accountCreated < 1000 * 60 * 60 * 24 * 7) return;
538
- // const isDismissed = !!localStorage.getItem('newDevUpgradePro');
539
- // if (isDismissed) return;
+ if (now - accountCreated < 1000 * 60 * 60 * 24 * 7) return;
+ const isDismissed = !!localStorage.getItem('newDevUpgradePro');
+ if (isDismissed) return;
540
// check if coupon already applied
541
try {
542
await sdk.forConsole.billing.getCouponAccount(NEW_DEV_PRO_UPGRADE_COUPON);
0 commit comments