1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00: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

View File

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