mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:13:22 +00:00
Update apps/login/ui/PasswordForm.tsx
Co-authored-by: Elio Bischof <elio@zitadel.com>
This commit is contained in:
@@ -42,15 +42,12 @@ export default function PasswordForm({ loginName }: Props) {
|
||||
|
||||
const response = await res.json();
|
||||
|
||||
setLoading(false);
|
||||
if (!res.ok) {
|
||||
setLoading(false);
|
||||
console.log(response);
|
||||
setError(response.details);
|
||||
return Promise.reject(response.details);
|
||||
} else {
|
||||
setLoading(false);
|
||||
return response;
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
function submitPasswordAndContinue(value: Inputs): Promise<boolean | void> {
|
||||
|
||||
Reference in New Issue
Block a user