From 9d3b4749aeb1a6907e50f13b5b8e5d87c59dd32c Mon Sep 17 00:00:00 2001 From: twwu Date: Wed, 28 Jan 2026 11:15:10 +0800 Subject: [PATCH] fix(humanInput): wrap rate limit exceeded error message in return statement for proper rendering --- .../(humanInputLayout)/form/[token]/form.tsx | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/web/app/(humanInputLayout)/form/[token]/form.tsx b/web/app/(humanInputLayout)/form/[token]/form.tsx index 1bcdda3328..d027ef8b7d 100644 --- a/web/app/(humanInputLayout)/form/[token]/form.tsx +++ b/web/app/(humanInputLayout)/form/[token]/form.tsx @@ -182,27 +182,29 @@ const FormContent = () => { } if (rateLimitExceeded) { -
-
-
-
- + return ( +
+
+
+
+ +
+
+
{t('humanInput.rateLimitExceeded', { ns: 'share' })}
+
-
-
{t('humanInput.rateLimitExceeded', { ns: 'share' })}
-
-
-
-
-
{t('chat.poweredBy', { ns: 'share' })}
- +
+
+
{t('chat.poweredBy', { ns: 'share' })}
+ +
-
+ ) } if (!formData) {