error handling

This commit is contained in:
peintnermax
2024-10-22 15:17:08 +02:00
parent 3fadf2651e
commit ebae556715

View File

@@ -72,7 +72,7 @@ export function SetPasswordForm({
}
const changeResponse = await changePassword(payload).catch(() => {
setError("Could not register user");
setError("Could not set password");
});
if (changeResponse && "error" in changeResponse) {