From 2d9a3754b5d4e68b8221c501e239710a12cfed5d Mon Sep 17 00:00:00 2001 From: Akira Hayashi Date: Tue, 4 Jun 2024 04:40:24 +0900 Subject: [PATCH] Format code --- src/cost.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cost.ts b/src/cost.ts index decc7bf..8cce24e 100644 --- a/src/cost.ts +++ b/src/cost.ts @@ -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')) {