1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-10 09:59:48 +01:00

Don't process reload when cancelling biometrics (#11081)

This commit is contained in:
Bernd Schoolmann 2024-09-18 16:41:23 +02:00 committed by GitHub
parent be6f257398
commit f6e51ef024
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,8 +170,12 @@ export class BiometricsService extends DesktopBiometricsService {
try {
response = await callback();
restartReload ||= restartReloadCallback(response);
} catch {
restartReload = true;
} catch (error) {
if (error.message === "Biometric authentication failed") {
restartReload = false;
} else {
restartReload = true;
}
}
if (restartReload) {