Skip to content

Commit e615480

Browse files
committed
FIX: 감정 구슬 업데이트시 오늘 날짜에 대한 감정 구슬을 가져오도록 수정
1 parent cc7a40f commit e615480

File tree

1 file changed

+2
-1
lines changed
  • presentation/src/main/java/com/threegap/bitnagil/presentation/home

1 file changed

+2
-1
lines changed

presentation/src/main/java/com/threegap/bitnagil/presentation/home/HomeViewModel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ class HomeViewModel @Inject constructor(
245245
private fun observeEmotionChangeEvent() {
246246
viewModelScope.launch {
247247
getEmotionChangeEventFlowUseCase().collect {
248-
getMyEmotion(stateFlow.value.selectedDate)
248+
val currentDate = LocalDate.now()
249+
getMyEmotion(currentDate)
249250
}
250251
}
251252
}

0 commit comments

Comments
 (0)