GetFirstDataYear

Function: getFirstDataYear()

[object Object]

Defined in: routes/admin/statistics/statistics.handlers.tsx:50

The oldest committee year that has any statistics data (new members, active members, first-years at activities), so the year selector starts where the data starts instead of at a fixed year. Falls back to fallback when there is no data at all.

Parameters

statistics

StatisticsResponseDto

The loaded statistics.

fallback

[object Object]

The year to use when there is no data (the current committee year).

Returns

[object Object]

The oldest committee year with data.

On this page