Skip to content

Commit

Permalink
Boolti-301 코드리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
mangbaam committed Oct 8, 2024
1 parent db6ad98 commit 13ff6d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,10 @@ class ProfileViewModel @Inject constructor(
}

private fun fetchOthersProfile(userCode: String) {
viewModelScope.launch {
viewModelScope.launch(recordExceptionHandler) {
memberRepository.getMember(userCode).onSuccess { user ->
_uiState.update { it.copy(user = user) }
}.onFailure {
it.printStackTrace()
event(ProfileEvent.Invalid)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ import com.nexters.boolti.presentation.util.UrlParser
import kotlinx.coroutines.launch
import timber.log.Timber
import java.time.format.DateTimeFormatter
import kotlin.math.roundToInt
import kotlin.math.ceil

@Composable
fun ShowDetailScreen(
Expand Down Expand Up @@ -546,7 +546,7 @@ fun LazyListScope.CastTab(
val spacedBySize = 20.dp
val memberHeight = 46.dp
val spanCount = 2
val rows = (team.members.size / spanCount.toFloat()).roundToInt()
val rows = ceil(team.members.size / spanCount.toFloat())

/**
* 중첩 Lazy 레이아웃 처리를 위해 높이 고정 필요
Expand Down

0 comments on commit 13ff6d7

Please sign in to comment.