File tree Expand file tree Collapse file tree
feature/pose/impl/src/main/java/com/neki/android/feature/pose/impl/random Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments