Skip to content

Commit

Permalink
VKT(Frontend): Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoivisto committed Nov 8, 2024
1 parent 179ea72 commit 27d0185
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const selectFilteredClerkExamEvents = createSelector(
(state: RootState) => state.clerkListExamEvent.examEvents,
(state: RootState) => state.clerkListExamEvent.languageFilter,
(state: RootState) => state.clerkListExamEvent.toggleFilter,
(examEvents, languageFilter, toggleFilter) => {
(examEvents, languageFilter, toggleFilter): Array<ClerkListExamEvent> => {
let filteredExamEvents = examEvents;

if (languageFilter !== ExamLanguage.ALL) {
Expand All @@ -22,9 +22,9 @@ export const selectFilteredClerkExamEvents = createSelector(
}

if (toggleFilter === ExamEventToggleFilter.Upcoming) {
return ExamEventUtils.getUpcomingExamEvents(filteredExamEvents);
return ExamEventUtils.getUpcomingExamEvents(filteredExamEvents) as Array<ClerkListExamEvent>;
} else {
return ExamEventUtils.getPassedExamEvents(filteredExamEvents);
return ExamEventUtils.getPassedExamEvents(filteredExamEvents) as Array<ClerkListExamEvent>;
}
},
);

0 comments on commit 27d0185

Please sign in to comment.