mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
encapsulate kludge property to fix invalid credential type error (#15225)
This commit is contained in:
@@ -161,6 +161,14 @@ export class UserStateSubject<
|
||||
this.outputSubscription = userState$
|
||||
.pipe(
|
||||
switchMap((userState) => userState.state$),
|
||||
map((stored) => {
|
||||
if (stored && typeof stored === "object" && ALWAYS_UPDATE_KLUDGE in stored) {
|
||||
// related: ALWAYS_UPDATE_KLUDGE FIXME
|
||||
delete stored[ALWAYS_UPDATE_KLUDGE];
|
||||
}
|
||||
|
||||
return stored;
|
||||
}),
|
||||
this.declassify(encryptor$),
|
||||
this.adjust(combineLatestWith(constraints$)),
|
||||
takeUntil(anyComplete(account$)),
|
||||
|
||||
Reference in New Issue
Block a user