From 18828ab043a62fdb5b0579f9b88f627f8638cc0b Mon Sep 17 00:00:00 2001 From: BiggerRain <15911122312@163.COM> Date: Fri, 5 Dec 2025 15:15:42 +0800 Subject: [PATCH] chore: modify the display of errors (#1000) --- .../Common/ErrorNotification/index.tsx | 68 +++++++++++-------- 1 file changed, 38 insertions(+), 30 deletions(-) diff --git a/src/components/Common/ErrorNotification/index.tsx b/src/components/Common/ErrorNotification/index.tsx index 73a6154c..5580666f 100644 --- a/src/components/Common/ErrorNotification/index.tsx +++ b/src/components/Common/ErrorNotification/index.tsx @@ -35,45 +35,53 @@ const ErrorNotification = ({ if (errors.length === 0 || suppressErrors) return null; + // Only show the latest error to avoid overwhelming the user + const visibleError = errors[errors.length - 1]; + const remainingCount = Math.max(0, errors.length - 1); + return (