Skip to content

Commit

Permalink
[CHORE] #94 : 단일표현식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Jan 30, 2024
1 parent f28c851 commit 2a8e2dc
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,14 @@ class ManagementViewModel @Inject constructor(
private val _eventList: MutableStateFlow<EventsState> = MutableStateFlow(EventsState.Init)
val eventList: StateFlow<EventsState> = _eventList.asStateFlow()

fun getUserRole() {
viewModelScope.launch {
getUserRoleUseCase()
.onSuccess { userRole ->
_userRole.value = UserRoleUiState.Success(userRole)
}
.onFailure { exception ->
_errorFlow.emit(exception)
}
}
fun getUserRole() = viewModelScope.launch {
getUserRoleUseCase()
.onSuccess { userRole ->
_userRole.value = UserRoleUiState.Success(userRole)
}
.onFailure { exception ->
_errorFlow.emit(exception)
}
}

fun getEventSurveyList() = viewModelScope.launch {
Expand Down

0 comments on commit 2a8e2dc

Please sign in to comment.