fix error message on /password

This commit is contained in:
peintnermax
2024-04-25 09:14:30 +02:00
parent 0d954f0b58
commit 44bf7ace42

View File

@@ -63,7 +63,8 @@ export default function PasswordForm({
setLoading(false);
if (!res.ok) {
setError(response.details);
console.log(response.details.details);
setError(response.details?.details ?? "Could not verify password");
return Promise.reject(response.details);
}
return response;