From 7ad8d681d08fedd7c3759b27757222fe45ae022b Mon Sep 17 00:00:00 2001 From: Josh Krebs Date: Mon, 18 Sep 2023 16:41:19 -0700 Subject: [PATCH] fix linting --- .../src/components/budget/MonthsContext.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/desktop-client/src/components/budget/MonthsContext.tsx b/packages/desktop-client/src/components/budget/MonthsContext.tsx index 94f219a422f..7d739309601 100644 --- a/packages/desktop-client/src/components/budget/MonthsContext.tsx +++ b/packages/desktop-client/src/components/budget/MonthsContext.tsx @@ -13,7 +13,11 @@ type GetValidMonthBoundsParams = { endMonth: string | Date; }; -export function getValidMonthBounds({ bounds, startMonth, endMonth }: GetValidMonthBoundsParams) { +export function getValidMonthBounds({ + bounds, + startMonth, + endMonth, +}: GetValidMonthBoundsParams) { return { start: startMonth < bounds.start ? bounds.start : startMonth, end: endMonth > bounds.end ? bounds.end : endMonth, @@ -38,7 +42,11 @@ export function MonthsProvider({ children, }: MonthsProviderProps) { let endMonth = monthUtils.addMonths(startMonth, numMonths - 1); - let bounds = getValidMonthBounds({ bounds: monthBounds, startMonth, endMonth }); + let bounds = getValidMonthBounds({ + bounds: monthBounds, + startMonth, + endMonth, + }); let months = monthUtils.rangeInclusive(bounds.start, bounds.end); return (