mirror of
https://github.com/status-im/wakuconnect-chat-sdk.git
synced 2025-01-12 05:05:14 +00:00
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 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!
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user