loading states

This commit is contained in:
peintnermax
2024-09-04 14:47:57 +02:00
parent 4a80eb8cb4
commit fb023bcedb
2 changed files with 2 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ export default function PasswordForm({
authRequestId, authRequestId,
}).catch((error: Error) => { }).catch((error: Error) => {
setError(error.message ?? "Could not verify password"); setError(error.message ?? "Could not verify password");
setLoading(false);
}); });
setLoading(false); setLoading(false);

View File

@@ -50,6 +50,7 @@ export default function RegisterPasskey({
sessionId, sessionId,
}).catch((error: Error) => { }).catch((error: Error) => {
setError(error.message); setError(error.message);
setLoading(false);
}); });
setLoading(false); setLoading(false);