Skip to content

Commit

Permalink
fix isLeaseActive excluding last day of lease
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskarlsson committed Jan 15, 2025
1 parent fc0fb28 commit d88ab7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ const isLeaseActive = (lease: Lease | PartialLease): boolean => {

return (
leaseStartDate < currentDate &&
(!lastDebitDate || currentDate < lastDebitDate)
(!lastDebitDate || currentDate <= lastDebitDate)
)
}

Expand Down

0 comments on commit d88ab7a

Please sign in to comment.