fix(login): show login errors provided in response (#10871)

Co-authored-by: Hyejin Yoon <0327jane@gmail.com>
This commit is contained in:
Amanda Ng 2025-07-02 07:28:47 +08:00 committed by GitHub
parent 7457319c0a
commit 3867c1cbce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,8 +95,8 @@ export const LogIn: React.VFC<LogInProps> = () => {
analytics.event({ type: EventType.LogInEvent }); analytics.event({ type: EventType.LogInEvent });
return Promise.resolve(); return Promise.resolve();
}) })
.catch((_) => { .catch((e) => {
message.error(`Failed to log in! An unexpected error occurred.`); message.error(`Failed to log in! ${e}`);
}) })
.finally(() => setLoading(false)); .finally(() => setLoading(false));
}, },