Skip to content

Commit c79b6b1

Browse files
committed
feat(admin-settings): extend year selector up to current year + 10
1 parent e9fb183 commit c79b6b1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/app/src/modules/admin/settings/CampaignDeadlinesForm.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,14 @@ function buildDefaults(year: number): CampaignDeadlinesFormInput {
302302
}
303303

304304
/**
305-
* Lists every year between FIRST_DECLARATION_YEAR and the current year + 1 so
306-
* the admin can pick any campaign, flagging years without a DB row as
307-
* "non configurée" rather than hiding them.
305+
* Lists every year between FIRST_DECLARATION_YEAR and the current year + 10 so
306+
* the admin can pre-configure campaigns well in advance, flagging years
307+
* without a DB row as "non configurée" rather than hiding them.
308308
*/
309309
function buildYearOptions(
310310
configuredYears: readonly number[],
311311
): Array<{ year: number; label: string }> {
312-
const max = getCurrentYear() + 1;
312+
const max = getCurrentYear() + 10;
313313
const configured = new Set(configuredYears);
314314
const years: Array<{ year: number; label: string }> = [];
315315
for (let y = FIRST_DECLARATION_YEAR; y <= max; y++) {

0 commit comments

Comments
 (0)