set `count`'s default value

This commit is contained in:
Felicio Mununga 2022-08-24 14:18:56 +02:00
parent 2457c43bbe
commit dc2c75f18d
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ const ChatItem = (props: Props, ref: Ref<HTMLAnchorElement>) => {
const muted = false const muted = false
const unread = unreadChats.has(chat.id) const unread = unreadChats.has(chat.id)
const count = unreadChats.get(chat.id)?.count const count = unreadChats.get(chat.id)?.count ?? 0
const { color, displayName } = chat.identity! const { color, displayName } = chat.identity!