1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-17 01:31:25 +01:00

Add distinctUntilChanged to fix multiple value changes for biometrics firing (#5999)

This commit is contained in:
Robyn MacCallum 2023-08-10 08:22:28 -04:00 committed by GitHub
parent c80c0fd701
commit 5e88624b13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ import {
BehaviorSubject,
combineLatest,
concatMap,
distinctUntilChanged,
filter,
firstValueFrom,
map,
@ -190,6 +191,7 @@ export class SettingsComponent implements OnInit {
this.form.controls.biometric.valueChanges
.pipe(
distinctUntilChanged(),
concatMap(async (enabled) => {
await this.updateBiometric(enabled);
if (enabled) {