diff --git a/feature/mypage/src/main/java/org/sopt/official/feature/mypage/mypage/MyPageActivity.kt b/feature/mypage/src/main/java/org/sopt/official/feature/mypage/mypage/MyPageActivity.kt index 88410d2bf..c16012529 100644 --- a/feature/mypage/src/main/java/org/sopt/official/feature/mypage/mypage/MyPageActivity.kt +++ b/feature/mypage/src/main/java/org/sopt/official/feature/mypage/mypage/MyPageActivity.kt @@ -214,7 +214,7 @@ class MyPageActivity : AppCompatActivity() { if (myPageAction != null) { ShowMyPageDialog( action = myPageAction ?: return@Scaffold, - onDismissRequest = viewModel::onDismiss, + onDismissRequest = viewModel::closeDialog, onClearSoptampClick = viewModel::resetSoptamp, onLogoutClick = viewModel::logOut ) diff --git a/feature/mypage/src/main/java/org/sopt/official/feature/mypage/mypage/MyPageViewModel.kt b/feature/mypage/src/main/java/org/sopt/official/feature/mypage/mypage/MyPageViewModel.kt index c0f17e14f..1fd2b4843 100644 --- a/feature/mypage/src/main/java/org/sopt/official/feature/mypage/mypage/MyPageViewModel.kt +++ b/feature/mypage/src/main/java/org/sopt/official/feature/mypage/mypage/MyPageViewModel.kt @@ -85,7 +85,7 @@ class MyPageViewModel @Inject constructor( fun resetSoptamp() { viewModelScope.launch { stampRepository.deleteAllStamps() - .onSuccess { onDismiss() } + .onSuccess { closeDialog() } .onFailure { Timber.e(it) } } } @@ -94,7 +94,7 @@ class MyPageViewModel @Inject constructor( _action.value = action } - fun onDismiss() { + fun closeDialog() { _action.value = null } }