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:
parent
c80c0fd701
commit
5e88624b13
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user