Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jod929 committed Sep 18, 2023
1 parent a70ada2 commit 7ad8d68
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/desktop-client/src/components/budget/MonthsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 (
Expand Down

0 comments on commit 7ad8d68

Please sign in to comment.