Updated on 2026-08-14

This commit is contained in:
Tangem 2023-06-21 13:25:40 +03:00
parent 99e6086bf5
commit 6fa5222358
2 changed files with 1 additions and 6 deletions

View file

@ -14,9 +14,7 @@ private fun internalReduce(action: Action, state: AppState): HomeState {
when (action) {
is HomeAction.InsertStory -> {
state = state.copy(
stories = state.stories.toMutableList().apply {
add(action.position, action.story)
},
stories = listOf(action.story) + state.stories,
)
}
is HomeAction.ScanInProgress -> {