mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
Update Expectations of update method (#7119)
* Update Expectations of `update` method Change `update` to return current state when `shouldUpdate` returns false. * Delete Accidental Tests
This commit is contained in:
@@ -91,7 +91,7 @@ export class DefaultSingleUserState<T> implements SingleUserState<T> {
|
||||
: null;
|
||||
|
||||
if (!options.shouldUpdate(currentState, combinedDependencies)) {
|
||||
return;
|
||||
return currentState;
|
||||
}
|
||||
|
||||
const newState = configureState(currentState, combinedDependencies);
|
||||
|
||||
Reference in New Issue
Block a user