Skip to content

Commit

Permalink
[ Fix ] : 어드민 로그인 Dialog가 뜨지 않는 이슈 수정 (#314)
Browse files Browse the repository at this point in the history
- 기존 조건에 부합할 경우 'DialogState.NONE' 상태를 'DialogState.INSERT_CODE_NUMBER' 로 수정합니다
  • Loading branch information
toastmeister1 authored Jul 31, 2023
1 parent 12361f4 commit 004f9e9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import com.yapp.domain.usecases.CheckVersionUpdateUseCase
import com.yapp.domain.usecases.GetCurrentMemberInfoUseCase
import com.yapp.domain.usecases.SetMemberIdUseCase
import com.yapp.domain.usecases.ShouldShowGuestButtonUseCase
import com.yapp.presentation.ui.login.LoginContract.DialogState
import com.yapp.presentation.ui.login.LoginContract.DialogState.FAIL_INIT_LOAD
import com.yapp.presentation.ui.login.LoginContract.DialogState.INSERT_CODE_NUMBER
import com.yapp.presentation.ui.login.LoginContract.DialogState.NECESSARY_UPDATE
import com.yapp.presentation.ui.login.LoginContract.DialogState.NONE
import com.yapp.presentation.ui.login.LoginContract.DialogState.REQUIRE_UPDATE
Expand Down Expand Up @@ -153,7 +155,7 @@ class LoginViewModel @Inject constructor(
is LoginUiEvent.OnYappuImageClicked -> {
setState {
if (this.clickCount == HIDDEN_CONDITION) {
this.copy(clickCount = 0, dialogState = NONE)
this.copy(clickCount = 0, dialogState = INSERT_CODE_NUMBER)
} else {
this.copy(clickCount = this.clickCount + 1)
}
Expand Down

0 comments on commit 004f9e9

Please sign in to comment.