From 5dfb6804b5894c34eed4f5aa839847558b71acdd Mon Sep 17 00:00:00 2001 From: Skander Mzali Date: Thu, 14 Nov 2024 16:37:08 -0800 Subject: [PATCH] Revert SignInForm change for errorToMessage --- ui/src/components/auth/SignInForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/auth/SignInForm.tsx b/ui/src/components/auth/SignInForm.tsx index d1fdb957..10b2ff94 100644 --- a/ui/src/components/auth/SignInForm.tsx +++ b/ui/src/components/auth/SignInForm.tsx @@ -139,7 +139,7 @@ export default function SignInForm({ onSubmit, errors }: SignInFormProps) { } const errorCodeToMessage = (error: string) => { - if (error === "Authentication failed") { + if (error === "invalid_credentials") { return "Your email and password didn't match our records. Please try again."; } else if (error) { return `An error occurred: ${error}. Please try again and let us know if this keeps happening.`;