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 02a6ba9 commit 63e9368Copy full SHA for 63e9368
src/lib/stores/billing.ts
@@ -287,6 +287,7 @@ export function checkForEnterpriseTrial(org: Organization) {
287
}
288
289
export function calculateEnterpriseTrial(org: Organization) {
290
+ if (!org || !org.billingNextInvoiceDate) return 0;
291
const endDate = new Date(org.billingNextInvoiceDate);
292
const startDate = new Date(org.billingCurrentInvoiceDate);
293
const today = new Date();
0 commit comments