Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Fix ] : 어드민 로그인 Dialog가 뜨지 않는 이슈 수정 #314

Merged
merged 1 commit into from
Jul 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading