Updated on 2026-08-14

This commit is contained in:
Tangem 2023-06-26 21:06:43 +03:00
parent a4e960106e
commit c0fb9e8bdb
8 changed files with 24 additions and 14 deletions

View file

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