mirror of
https://github.com/block-core/angor-hub-old.git
synced 2026-02-23 12:12:23 +01:00
Update chats.component.ts
This commit is contained in:
@@ -118,8 +118,9 @@ export class ChatsComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
this.filteredChats = this.chats.filter((chat) =>
|
||||
chat.contact.name.toLowerCase().includes(query.toLowerCase())
|
||||
(chat.contact.name ? chat.contact.name.toLowerCase() : '').includes(query.toLowerCase())
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user