From 07bc4a66545b319da138889898c4c6bb63e1c4e9 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 7 Dec 2025 00:30:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B4=E5=83=8F=E6=96=87=E5=AD=97=E6=88=96?= =?UTF-8?q?=E6=BA=90=E4=B8=BA=E7=A9=BA=E6=96=87=E6=9C=AC=E6=97=B6fallback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/Avatar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ui/Avatar.tsx b/client/ui/Avatar.tsx index b347723..d44d2ab 100644 --- a/client/ui/Avatar.tsx +++ b/client/ui/Avatar.tsx @@ -12,9 +12,9 @@ export default function Avatar({ avatarRef, ...props }: Args) { - if (src != null) + if (src != null && src != '') return - else if (text != null) + else if (text != null && text != '') return { text.substring(0, 1)