diff --git a/app/(dashboard)/task/client-detail/[client_id]/[assignment_id]/AssignmentDetailComponent.tsx b/app/(dashboard)/task/client-detail/[client_id]/[assignment_id]/AssignmentDetailComponent.tsx index 4beb224..a6c112c 100644 --- a/app/(dashboard)/task/client-detail/[client_id]/[assignment_id]/AssignmentDetailComponent.tsx +++ b/app/(dashboard)/task/client-detail/[client_id]/[assignment_id]/AssignmentDetailComponent.tsx @@ -244,7 +244,7 @@ function MetaTile({ icon: Icon, label, value }: { icon: typeof Briefcase; label: function PartyCard({ label, party, accent }: { label: string; party: any; accent: string }) { function initials(name: string) { - return name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase(); + return name?.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase(); } return ( @@ -254,17 +254,17 @@ function PartyCard({ label, party, accent }: { label: string; party: any; accent
{party.name}
-{party.description ?? 'No description available.'}
+{party?.name}
+{party?.description ?? 'No description available.'}
{people.length} People
+{people?.length} People
assigned to this work order