Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wess committed Jan 12, 2024
1 parent 5566d3a commit 41d5393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/stores/billing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ export function calculateTrialDay(org: Organization) {
if (org?.billingPlan === BillingPlan.STARTER) return false;
const endDate = new Date(org?.billingStartDate);
const today = new Date();

let diffTime = endDate.getTime() - today.getTime();
diffTime = Math.ceil(diffTime / (1000 * 60 * 60 * 24)) + 1;

let days = diffTime < 1 ? 0 : diffTime;

Check failure on line 167 in src/lib/stores/billing.ts

View workflow job for this annotation

GitHub Actions / build

'days' is never reassigned. Use 'const' instead

daysLeftInTrial.set(days);
Expand Down

0 comments on commit 41d5393

Please sign in to comment.