set `count`'s default value
This commit is contained in:
parent
2457c43bbe
commit
dc2c75f18d
|
@ -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!
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue