feat(ticket): redesign audit timeline with structured history events
This commit is contained in:
8
src/utils/person.ts
Normal file
8
src/utils/person.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { TicketActor } from '@/types';
|
||||
|
||||
export function getPersonLabel(
|
||||
person: TicketActor | null | undefined,
|
||||
fallback = 'Unknown',
|
||||
) {
|
||||
return person?.name || person?.email || fallback;
|
||||
}
|
||||
Reference in New Issue
Block a user