diff --git a/src/views/CurrentAssignmentView.tsx b/src/views/CurrentAssignmentView.tsx index 0046c2d..26810a6 100644 --- a/src/views/CurrentAssignmentView.tsx +++ b/src/views/CurrentAssignmentView.tsx @@ -34,7 +34,7 @@ export const CurrentAssignmentView: FunctionComponent< const history = useHistory(); const currentRouteId = useRouteMatch<{ servicePointId: string }>( '/settings/calendar/active/:servicePointId' - )?.params?.servicePointId || ''; + )?.params?.servicePointId ?? ''; if (!dataRepository.isLoaded()) { return ( @@ -92,7 +92,7 @@ export const CurrentAssignmentView: FunctionComponent< }; }); - const calendarName = dataRepository.getCalendars().filter((c) => c.assignments.includes(currentRouteId))[0]?.name || ''; + const calendarName = dataRepository.getCalendars().filter((c) => c.assignments.includes(currentRouteId))[0]?.name ?? ''; const pageTitle = intl.formatMessage({ id: 'ui-calendar.meta.titleSettings' }) + ' - ' + intl.formatMessage({ id: 'ui-calendar.currentAssignmentView.title'