Skip to content

Commit 58ae726

Browse files
committed
[BOOK-515] fix: 감정 선택 변경 시 엣지 케이스 수정
- 이미 커밋된 감정이 있는 상태에서 다른 감정 선택 후 커밋 없이 dismiss했을 때, 커밋된 감정을 누르면 수정 다이얼로그가 재노출되는 문제 해결
1 parent 2a8c795 commit 58ae726

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

feature/record/src/main/kotlin/com/ninecraft/booket/feature/record/register/RecordRegisterPresenter.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,11 @@ class RecordRegisterPresenter(
273273
if (committedEmotionCode == null) {
274274
selectedEmotionCode = null
275275
selectedEmotionMap = persistentMapOf()
276+
} else {
277+
selectedEmotionCode = committedEmotionCode
278+
selectedEmotionMap = committedEmotionMap
276279
}
280+
277281
isEmotionDetailBottomSheetVisible = false
278282
}
279283

0 commit comments

Comments
 (0)