Skip to content

Commit 9e5a936

Browse files
committed
Remove the double check for fallback
1 parent 40c56d9 commit 9e5a936

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

keepassxc-browser/content/passkeys.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,9 @@
203203
if (!response.publicKey) {
204204
if (!response.fallback) {
205205
throwError(response?.errorCode, response?.errorMessage);
206+
return null;
206207
}
207-
return response.fallback ? originalCredentials.create(options) : null;
208+
return originalCredentials.create(options);
208209
}
209210

210211
return createPublicKeyCredential(response.publicKey);
@@ -228,8 +229,9 @@
228229
if (!response.publicKey) {
229230
if (!response.fallback) {
230231
throwError(response?.errorCode, response?.errorMessage);
232+
return null;
231233
}
232-
return response.fallback ? originalCredentials.get(options) : null;
234+
return originalCredentials.get(options);
233235
}
234236

235237
return createPublicKeyCredential(response.publicKey);

0 commit comments

Comments
 (0)