fix(types): refine user type definitions for assigned users in incident handling

This commit is contained in:
ghotso
2025-08-19 01:42:35 +02:00
parent b574073294
commit 1953d54dc5
3 changed files with 3 additions and 3 deletions
@@ -68,7 +68,7 @@ export const IncidentBasicFields: React.FC = () => {
const selectedUser = users.find(user => user.id === form.getValues('assigned_to'));
// Function to get user initials from name
const getUserInitials = (user: any): string => {
const getUserInitials = (user: { full_name?: string; username: string }): string => {
if (user.full_name) {
const nameParts = user.full_name.split(' ');
if (nameParts.length > 1) {