From e9f6e9e4995d3637a7d2dfdd25e9ba9ccc109f2d Mon Sep 17 00:00:00 2001 From: shenlan Date: Wed, 1 Oct 2025 10:05:42 +0800 Subject: [PATCH] fix: ensure login error strings are defined (#335) --- ui/homepage/app/login/LoginContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/homepage/app/login/LoginContent.tsx b/ui/homepage/app/login/LoginContent.tsx index d98d2d5..7cc0b75 100644 --- a/ui/homepage/app/login/LoginContent.tsx +++ b/ui/homepage/app/login/LoginContent.tsx @@ -43,7 +43,7 @@ export default function LoginContent({ children }: LoginContentProps) { missing_credentials: alerts.missingCredentials, email_and_password_are_required: alerts.missingCredentials, invalid_credentials: alerts.invalidCredentials, - user_not_found: alerts.userNotFound, + user_not_found: alerts.userNotFound ?? alerts.genericError, } const message = errorMap[normalizedError] ?? alerts.genericError alert = { type: 'error', message }