Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix default value for empty notification title #279

Merged
merged 4 commits into from
Jan 28, 2024

Conversation

peng-u-0807
Copy link
Member

수정사항

  • title 값이 비어있는 예전의 알림들에 대해서는 default title값을 사용하도록 수정했습니다

@peng-u-0807 peng-u-0807 requested a review from a team as a code owner January 19, 2024 21:11
@@ -8,7 +8,7 @@
import Foundation

struct NotificationDto: Decodable {
let title: String
var title: String
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 let으로 두는 게 어떤가요

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shp7724 아래에서 if title.isEmpty 구문때문에 let으로 바꾸면 아마 에러뜰거에요 저도 그래서 var로 했던듯?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

클로져나 함수로 빼면 한번만 initialize 해도 될것같아여

@peng-u-0807 peng-u-0807 merged commit fa7aa27 into master Jan 28, 2024
@peng-u-0807 peng-u-0807 self-assigned this Jan 29, 2024
@peng-u-0807 peng-u-0807 deleted the peng-u-0807/fix-noti-title branch February 6, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants