Skip to content

Commit

Permalink
frontend: Fix functions tab not working in January
Browse files Browse the repository at this point in the history
  • Loading branch information
jforsman committed Jan 22, 2024
1 parent 6f41c25 commit 54b7397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/features/functions/ThirtyYearRegulationTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ const ThirtyYearRegulationDateSelection = ({formObject, hasSkippedCompanies}) =>
if (month >= 1) hitasQuarterOptions.push(hitasQuarters[0]);
if (month >= 4) hitasQuarterOptions.push(hitasQuarters[1]);
if (month >= 7) hitasQuarterOptions.push(hitasQuarters[2]);
if (month >= 10) hitasQuarterOptions.push(hitasQuarters[3]);
// Last quarter from start of november to the end on january, month == 0 means january
if (month >= 10 || month == 0) hitasQuarterOptions.push(hitasQuarters[3]);
}

return (
Expand Down

0 comments on commit 54b7397

Please sign in to comment.