From 90253effa616ea0b991f69cd01e7c9eba942645e Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Wed, 25 Sep 2024 04:52:41 +0800 Subject: [PATCH] fix: mesage time update --- src/app/content/views/Header/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/content/views/Header/index.tsx b/src/app/content/views/Header/index.tsx index 8eee395..62eeed2 100644 --- a/src/app/content/views/Header/index.tsx +++ b/src/app/content/views/Header/index.tsx @@ -12,7 +12,7 @@ const Header: FC = () => { const roomDomain = useRemeshDomain(RoomDomain()) const userList = useRemeshQuery(roomDomain.query.UserListQuery()) const peerId = useRemeshQuery(roomDomain.query.PeerIdQuery()) - const onlineCount = userList.length > 99 ? '99+' : userList.length + const onlineCount = userList.length return (
@@ -53,17 +53,17 @@ const Header: FC = () => { 1 ? 'bg-green-400' : 'bg-orange-400' )} > 1 ? 'bg-green-500' : 'bg-orange-500' )} > - ONLINE {onlineCount} + ONLINE {onlineCount > 99 ? '99+' : onlineCount}
)