Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rindrics committed Jun 13, 2024
1 parent bb84491 commit 2d9a375
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,11 @@ function calculateServiceTotals(
thisMonthServiceTotal += price;
}

if (dateObj.isSameOrAfter(startOfLast7Days) && dateObj.isSameOrBefore(dayjs().startOf('day'))) {
last7DaysServiceTotal += price;
if (
dateObj.isSameOrAfter(startOfLast7Days) &&
dateObj.isSameOrBefore(dayjs().startOf('day'))
) {
last7DaysServiceTotal += price;
}

if (dateObj.isSame(startOfYesterday, 'day')) {
Expand Down

0 comments on commit 2d9a375

Please sign in to comment.