From db6ad989f8334e743ca61084e6bb08f28130980e Mon Sep 17 00:00:00 2001 From: mangbaam Date: Sun, 6 Oct 2024 21:52:15 +0900 Subject: [PATCH] =?UTF-8?q?Boolti-301=20chore:=20=EB=8D=94=EB=AF=B8=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../screen/showdetail/ShowDetailViewModel.kt | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/presentation/src/main/java/com/nexters/boolti/presentation/screen/showdetail/ShowDetailViewModel.kt b/presentation/src/main/java/com/nexters/boolti/presentation/screen/showdetail/ShowDetailViewModel.kt index 95d24e8c..5c788ce8 100644 --- a/presentation/src/main/java/com/nexters/boolti/presentation/screen/showdetail/ShowDetailViewModel.kt +++ b/presentation/src/main/java/com/nexters/boolti/presentation/screen/showdetail/ShowDetailViewModel.kt @@ -5,8 +5,6 @@ import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.google.firebase.crashlytics.ktx.crashlytics import com.google.firebase.ktx.Firebase -import com.nexters.boolti.domain.model.Cast -import com.nexters.boolti.domain.model.CastTeams import com.nexters.boolti.domain.repository.AuthRepository import com.nexters.boolti.domain.repository.ShowRepository import dagger.hilt.android.lifecycle.HiltViewModel @@ -68,30 +66,7 @@ class ShowDetailViewModel @Inject constructor( showRepository.requestCastTeams(showId = showId) .onSuccess { newCastTeams -> _uiState.update { - it.copy( - castTeams = newCastTeams + listOf( - CastTeams( - teamName = "명범 팀", - members = listOf( - Cast( - userCode = "3ZZ0GKQZ", - nickname = "정상박명범", - roleName = "안드로이드, 기타, 통기타", - ), - Cast( - userCode = "3ZZ0GKQZ_", - nickname = "비정상박명범", - roleName = "안드로이드, 기타, 통기타", - ), - Cast( - userCode = "FLHRNVYB", - nickname = "김민슈", - roleName = "FE, 기타", - ), - ), - ) - ) - ) + it.copy(castTeams = newCastTeams) } } .onFailure {