Skip to content

Commit

Permalink
fix: add fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Oct 2, 2023
1 parent b419553 commit 2d2f1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/client/src/pages/courthouse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function Courthouse(props: Props) {
const { hasPermissions } = usePermission();
const hasEntriesPerms = hasPermissions([Permissions.Leo]);
const hasCourthouseAdminPerms = hasPermissions(defaultPermissions.defaultCourthousePermissions);
const enabledTypes = options.COURTHOUSE;
const enabledTypes = options.COURTHOUSE ?? [];

const expungementRequestsEnabled = enabledTypes.includes(CourthouseType.EXPUNGEMENT_REQUEST);
const nameChangeRequestsEnabled = enabledTypes.includes(CourthouseType.NAME_CHANGE_REQUEST);
Expand Down

0 comments on commit 2d2f1d6

Please sign in to comment.