Skip to content

Commit bc3f235

Browse files
committed
[BOOK-379] feat: 조회 화면에서 optional 처리
1 parent 2ad2262 commit bc3f235

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Projects/BKPresentation/Sources/MainFlow/NoteCompletion/View/AppreciationResultView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ final class AppreciationResultView: BaseView {
139139
func apply(
140140
emotion: EmotionIcon,
141141
creationDate: Date,
142-
appreciation: String
142+
appreciation: String = ""
143143
) {
144144
emotionIcon.image = emotion.icon
145145
emotionLabel.setText(text: emotion.rawValue)

src/Projects/BKPresentation/Sources/MainFlow/NoteCompletion/View/NoteCompletionView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class NoteCompletionView: BaseView {
4646
appreciationResultView.apply(
4747
emotion: EmotionIcon.from(emotion: recordInfo.emotionTags.first ?? .joy),
4848
creationDate: recordInfo.createdAt,
49-
appreciation: recordInfo.review
49+
appreciation: recordInfo.review ?? ""
5050
)
5151
}
5252

0 commit comments

Comments
 (0)