diff --git a/src/views/panes/InfoPane.tsx b/src/views/panes/InfoPane.tsx index 73a9c8c..cc34ff4 100644 --- a/src/views/panes/InfoPane.tsx +++ b/src/views/panes/InfoPane.tsx @@ -32,6 +32,7 @@ import { generateExceptionalOpeningRows } from '../../utils/InfoPaneUtils'; import ifPermissionOr from '../../utils/ifPermissionOr'; import css from './InfoPane.css'; +const DCB_CALENDAR = 'DCB Calendar'; export interface InfoPaneProps { creationBasePath: string; editBasePath: string; @@ -120,7 +121,7 @@ export const InfoPane: FunctionComponent = ( onClose={props.onClose} dismissible actionMenu={({ onToggle }) => { - if ( calendar.name === 'DCB Calendar') { + if (calendar.name === DCB_CALENDAR) { return null; } return ifPermissionOr(