Skip to content

Commit b19441d

Browse files
committed
[fix] 랜덤 포즈 이미지 modifier 수정 및 스크랩 롤백 조건 개선
1 parent 9e71de4 commit b19441d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

feature/pose/impl/src/main/java/com/neki/android/feature/pose/impl/random/RandomPoseScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private fun RandomPoseImage(
130130
AsyncImage(
131131
model = pose.poseImageUrl,
132132
contentDescription = null,
133-
modifier = modifier
133+
modifier = Modifier
134134
.matchParentSize()
135135
.clip(RoundedCornerShape(20.dp)),
136136
contentScale = ContentScale.FillWidth,

feature/pose/impl/src/main/java/com/neki/android/feature/pose/impl/random/RandomPoseViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ internal class RandomPoseViewModel @AssistedInject constructor(
9292
scrapJobs[poseId] = viewModelScope.launch {
9393
delay(500)
9494
val committedScrap = store.uiState.value.committedScraps[poseId]
95-
if (committedScrap != newScrapStatus) return@launch
95+
if (committedScrap == newScrapStatus || committedScrap == null) return@launch
9696

9797
poseRepository.updateScrap(poseId, newScrapStatus)
9898
.onSuccess {

0 commit comments

Comments
 (0)