no u2fId in response

This commit is contained in:
peintnermax
2024-09-16 16:07:27 +02:00
parent 604c56758b
commit f7a8b4a17a

View File

@@ -65,7 +65,7 @@ export default function RegisterU2F({
setError(response?.error);
}
if (!response || "u2fId" in response) {
if (!response || !("u2fId" in response)) {
setLoading(false);
setError("An error on registering passkey");
return;