-
Notifications
You must be signed in to change notification settings - Fork 2
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] 닉네임 설정 시 공백 제거 로직 추가 및 프로필 설정 화면 재 진입 시 설정된 프로필 로드 #138
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
어푸 어푸 완전 감사해유
.trimmingCharacters(in: .whitespacesAndNewlines) | ||
else { return } | ||
|
||
viewModel.action(input: .updateProfileNickname(nickname: completedNickname)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요기서 updateProfileNickname이 필요한 이유는 앞 뒤 공백이 있을 시 제거한 것을 적용하기 위함인가유 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
마저유 ㅎㅎ
뷰모델에 있는 saveProfile
이 profileSubject.value
의 값으로 동작해서 그전에 업데이트~!!
private func resetProfile() { | ||
profileSubject.value = profileUseCase.loadProfile() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿뽀이 ~ 👍🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
감삼다 ~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!!
여기도 뷰모델을 새로 만들어 주는게 아니라서 생기는 일들이 있었는데, reset함수를 만들어 해결하셨군요..
조이가 알려줬습니다~~ |
🌁 Background
📱 Screenshot
Simulator.Screen.Recording.-.iPhone.13.mini.-.2024-12-02.at.19.45.32.mp4
👩💻 Contents
✅ Testing
📣 Related Issue