diff --git a/src/routes/collections.index.tsx b/src/routes/collections.index.tsx index d522b41..beebc29 100644 --- a/src/routes/collections.index.tsx +++ b/src/routes/collections.index.tsx @@ -234,10 +234,18 @@ function CollectionsIndexPage() { params={{ collectionId: r.id }} className="hover:underline" > - {r.homeowner?.last_name}, {r.homeowner?.first_name} - {r.homeowner?.unit_number && ( - - · Unit {r.homeowner.unit_number} + {r.homeowner ? ( + <> + {r.homeowner.last_name}, {r.homeowner.first_name} + {r.homeowner.unit_number && ( + + · Unit {r.homeowner.unit_number} + + )} + + ) : ( + + {(r as any).name || "Unassigned"} )}