From e3e3ee4db5c613ccf84411e9205f9a48553ac965 Mon Sep 17 00:00:00 2001 From: "hoc081098@gmail.com" Date: Thu, 22 Feb 2024 19:13:24 +0700 Subject: [PATCH] update EditViewModel --- .../solivagant/sample/todo/features/edit/EditViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/com/hoc081098/solivagant/sample/todo/features/edit/EditViewModel.kt b/composeApp/src/commonMain/kotlin/com/hoc081098/solivagant/sample/todo/features/edit/EditViewModel.kt index 3848c20..7bb7f7f 100644 --- a/composeApp/src/commonMain/kotlin/com/hoc081098/solivagant/sample/todo/features/edit/EditViewModel.kt +++ b/composeApp/src/commonMain/kotlin/com/hoc081098/solivagant/sample/todo/features/edit/EditViewModel.kt @@ -97,8 +97,8 @@ internal class EditViewModel( } .fold( onSuccess = { - _uiStateFlow.value = EditUiState.Complete navigator.navigateBack() + _uiStateFlow.value = EditUiState.Complete }, onFailure = { // TODO: handle error