mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-01 23:01:28 +01:00
Don't process reload when cancelling biometrics (#11081)
This commit is contained in:
parent
be6f257398
commit
f6e51ef024
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user