diff --git a/frontend/src/components/sdcCollection/SDCCollectionSummary.vue b/frontend/src/components/sdcCollection/SDCCollectionSummary.vue index bb8e7ca7..26be3b6a 100644 --- a/frontend/src/components/sdcCollection/SDCCollectionSummary.vue +++ b/frontend/src/components/sdcCollection/SDCCollectionSummary.vue @@ -158,7 +158,7 @@ import DoughnutChart from '../common/DoughnutChart.vue'; import { mapState, mapActions } from 'pinia'; import { sdcCollectionStore } from '../../store/modules/sdcCollection'; import router from '../../router'; -import {LocalDate, LocalDateTime} from '@js-joda/core'; +import {LocalDate} from '@js-joda/core'; import {capitalize} from 'lodash'; import {SDC_STEPS_DISTRICT, SDC_STEPS_SCHOOL, SDC_STEPS_INDP_SCHOOL, SDC_STEPS_SUMMER_DISTRICT, SDC_STEPS_SUMMER_INDP_SCHOOL, SDC_STEPS_SUMMER_SCHOOL} from '../../utils/sdc/SdcSteps'; import {getDateFormatter} from '../../utils/format'; @@ -316,7 +316,7 @@ export default { instituteStatusCode = response.data.sdcDistrictCollectionStatusCode; } this.currentStepIndex = this.getIndexOfSDCCollectionByStatusCode(instituteStatusCode); - this.setCurrentCollectionYear(LocalDateTime.parse(response.data.submissionDueDate, getDateFormatter('uuuu-MM-dd\'T\'HH:mm:ss')).year()); + this.setCurrentCollectionYear(LocalDate.parse(response.data.submissionDueDate)?.year()); this.calculateStep(); } }).catch(error => {