From b60d3fecb99ddec153774d0e6a8874874b78119f Mon Sep 17 00:00:00 2001 From: dakai Date: Sun, 2 Apr 2023 12:13:43 +0800 Subject: [PATCH] cx(Commit changes to format display of chat item count --- app/components/home.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/components/home.tsx b/app/components/home.tsx index 962811069..7e1eb03d7 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -91,7 +91,10 @@ export function ChatItem(props: { onClick={props.onClick} >
- {Locale.ChatItem.ChatItemCount(props.count).replace(/[^0-9]/g, "")} + {Locale.ChatItem.ChatItemCount(props.count).replace(/[^0-9]/g, "") + .length <= 3 + ? Locale.ChatItem.ChatItemCount(props.count).replace(/[^0-9]/g, "") + : ":)"}