Skip to content

Commit

Permalink
Merge pull request #76 from TeamTripmate/feat/qa2
Browse files Browse the repository at this point in the history
[fix] 홈화면 카테고리 중분류에 대응 되던 문제 수정
  • Loading branch information
wjdtkdgns777 authored Oct 7, 2024
2 parents b2d99d0 + b853f12 commit c40372a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,14 @@ private fun ContentForTab(
) {
items(uiState.spotList.size) { index ->
val spot = uiState.spotList[index]
val spotType = uiState.spotTypeList[index]
val locationTag = spot.address.split(" ").getOrNull(1) ?: ""
val mateTag = if (spot.companionYn) {
if (tabIndex == 0) "액티비티 동행" else "힐링 동행"
} else null // 동행모집이 없으면 mateTag는 null

HomeItem(
locationTag = locationTag,
categoryTag = spotType,
categoryTag = spot.category.smallCategory,
mateTag = mateTag, // mateTag가 null일 경우 표시되지 않음
imgUrl = spot.thumbnailUrl,
title = spot.title,
Expand Down

0 comments on commit c40372a

Please # to comment.