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

merge :: 잔류 신청 api 연동 #177

Merged
merged 28 commits into from
Feb 28, 2023
Merged

merge :: 잔류 신청 api 연동 #177

merged 28 commits into from
Feb 28, 2023

Conversation

HongSJae
Copy link
Contributor

잔류 신청 api 연동

@HongSJae HongSJae requested a review from a team as a code owner February 28, 2023 05:53
@HongSJae HongSJae self-assigned this Feb 28, 2023
@HongSJae HongSJae linked an issue Feb 28, 2023 that may be closed by this pull request
Comment on lines 78 to 81
) { [weak self] _ in
self?.fetchMyRemainApplicationItems()
self?.fetchRemainApplicationList()
}
Copy link
Member

Choose a reason for hiding this comment

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

이거

let remainOptions = self.remainApplicationList.remainOptions
.map { 
  if id == $0.id {
    return RemainOptionsEntity(id: $0.id, title: $0.title, description: $0.description, isApplied: true)
  } else {
    return RemainOptionsEntity(id: $0.id, title: $0.title, description: $0.description, isApplied: false)
  }
}
self.remainApplicationList = RemainApplicationList(remainOptions: remainOptions)

로 하는거 어떄요?

Copy link
Member

Choose a reason for hiding this comment

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

아 이거 if로 분기 안만들고 그냥 isApplied에 삼항 연산자 쓰는거도 괜찮겠네요

Copy link
Contributor Author

Choose a reason for hiding this comment

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

commit 하긴 했는데 맞나 한 번 확인 부탁드려용

이렇게 하는게 맞나 잘 모르겠네요..?
@HongSJae HongSJae merged commit 258f09f into develop Feb 28, 2023
@HongSJae HongSJae deleted the 175-remains-api-connect branch February 28, 2023 12:37
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.

잔류 신청 api 연동
3 participants