Skip to content

Commit

Permalink
[COMMENT/#19] 주석 제거, 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kangyuri1114 committed Dec 6, 2023
1 parent 149c5b6 commit ce865f7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ import org.sopt.dosopttemplate.di.UserSharedPreferences
import org.sopt.dosopttemplate.util.UiState

class LoginViewModel : ViewModel() {

// 로그인 성공 여부
private val _loginResult = MutableLiveData<UiState<Boolean>>()
val loginResult: LiveData<UiState<Boolean>> get() = _loginResult

// 로그인 response에서 받아온 유저 정보
private val _getLoginInfo = MutableLiveData<UiState<User>>()
val getLoginInfo: LiveData<UiState<User>> get() = _getLoginInfo

Expand All @@ -27,7 +30,6 @@ class LoginViewModel : ViewModel() {
RequestLoginDto(inputId, inputPw),
)
}.onSuccess {
// getUserInfo = it
_loginResult.value = UiState.Success(true)
_getLoginInfo.value = UiState.Success(User(it.id.toString(), it.username, it.nickname))
}.onFailure {
Expand Down

0 comments on commit ce865f7

Please sign in to comment.