Skip to content

Commit

Permalink
♻️ :: Apply Before Commit(PostViewModel)
Browse files Browse the repository at this point in the history
  • Loading branch information
audgns10 committed Aug 18, 2024
1 parent a4afc98 commit b23e2bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature/post/src/main/java/com/msg/post/PostScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ internal fun PostScreenRoute(
getPostList(
viewModel = viewModel,
onSuccess = { viewModel.postList.value = it },
onFailure = { viewModel.postList.value = GetPostListEntity(posts = emptyList()) }
onFailure = { viewModel.clearPostList() }
)
}

Expand Down

0 comments on commit b23e2bd

Please sign in to comment.