diff --git a/client/src/components/CrewForm.tsx b/client/src/components/CrewForm.tsx index ebaeaf0..e37b9cc 100644 --- a/client/src/components/CrewForm.tsx +++ b/client/src/components/CrewForm.tsx @@ -6,6 +6,7 @@ import { getLogbookKey } from '../services/logbookKeys.js' import { encryptJson, decryptJson } from '../services/crypto.js' import { syncLogbook } from '../services/sync.js' import { PlausibleEvents, trackPlausibleEvent } from '../services/analytics.js' +import { MAX_POOL_CREW_MEMBERS } from '../types/person.js' import { useDialog } from './ModalDialog.tsx' import { Users, User, Plus, Trash2, Edit2, Save, X, Check, Camera } from 'lucide-react' @@ -603,7 +604,7 @@ export default function CrewForm({

{t('crew.crew_section')}

- {!readOnly && crewList.length < 5 && !showMemberForm && ( + {!readOnly && crewList.length < MAX_POOL_CREW_MEMBERS && !showMemberForm && (