File tree Expand file tree Collapse file tree
packages/app/src/modules/admin/settings Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
309309function 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 ++ ) {
You can’t perform that action at this time.
0 commit comments