2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

Fixes #10815: Sort login items on initial load

This commit is contained in:
ValentinTimisica 2020-05-21 13:50:36 +03:00 committed by Mihai Branescu
parent 610409862b
commit 7974a5c77c

View File

@ -84,11 +84,13 @@ private fun savedLoginsStateReducer(
action: LoginsAction
): LoginsListState {
return when (action) {
is LoginsAction.UpdateLoginsList -> state.copy(
isLoading = false,
loginList = action.list,
filteredItems = action.list
)
is LoginsAction.UpdateLoginsList -> {
state.copy(
isLoading = false,
loginList = action.list,
filteredItems = state.sortingStrategy(action.list)
)
}
is LoginsAction.FilterLogins -> {
filterItems(
action.newText,