Skip to content

Commit

Permalink
[IDLE-511] 센터 관리자 인증 상태에서 앱 재실행시 인증 대기 화면으로 가지 않던 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Nov 11, 2024
1 parent ac24ec9 commit 72a5ebf
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import com.idle.domain.model.error.HttpResponseException
import com.idle.domain.model.profile.CenterManagerAccountStatus
import com.idle.domain.usecase.auth.GetAccessTokenUseCase
import com.idle.domain.usecase.auth.GetUserTypeUseCase
import com.idle.domain.usecase.chatting.ConnectWebSocketUseCase
import com.idle.domain.usecase.chatting.DisconnectWebSocketUseCase
import com.idle.domain.usecase.config.GetForceUpdateInfoUseCase
import com.idle.domain.usecase.profile.GetCenterStatusUseCase
import com.idle.domain.usecase.profile.GetMyCenterProfileUseCase
Expand Down Expand Up @@ -96,12 +94,8 @@ class MainViewModel @Inject constructor(
return@launch
}

when (userRole) {
UserType.CENTER.apiValue -> getMyCenterProfileUseCase().onFailure {
return@launch
}

UserType.WORKER.apiValue -> getMyWorkerProfileUseCase().onFailure {
if (userRole == UserType.WORKER.apiValue) {
getMyWorkerProfileUseCase().onFailure {
return@launch
}
}
Expand Down

0 comments on commit 72a5ebf

Please sign in to comment.