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

불필요한 currentCohort 속성 제거 #192

Merged
merged 2 commits into from
Jan 19, 2025
Merged

Conversation

HC-kang
Copy link
Contributor

@HC-kang HC-kang commented Jan 11, 2025

요즘 주중에 신경을 너무 못썼네요.. 늦었지만 이제야 PR 올립니다.

불필요한 currentCohort 속성을 제거했습니다.


체크리스트

  • 이슈가 연결되어 있나요?
  • 배포 후 브라우저 콘솔에 경고나 오류가 있나요?

@HC-kang HC-kang requested a review from a team as a code owner January 11, 2025 04:34
@HC-kang HC-kang linked an issue Jan 11, 2025 that may be closed by this pull request
@Sunjae95
Copy link
Contributor

@HC-kang
903b998
이 커밋 제가 로컬환경인줄알고 넣었는데 잘못 들어갔네요 다시 제거하겠습니다.. 😅

Copy link
Contributor

@DaleSeo DaleSeo left a comment

Choose a reason for hiding this comment

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

리펙토링하시느라 수고 많으셨습니다!

Comment on lines -63 to +64
existingMember.currentCohort = Math.max(
existingMember.currentCohort,
member.currentCohort,
);
if (!existingMember.cohorts.includes(member.currentCohort)) {
existingMember.cohorts.push(member.currentCohort);
}
existingMember.cohorts = [
...new Set([...existingMember.cohorts, ...member.cohorts]),
];
Copy link
Contributor

Choose a reason for hiding this comment

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

로직이 단순해져서 너무 좋습니다 ㅎㅎ

@HC-kang HC-kang force-pushed the 191-remove-currentcohort branch from a7dc799 to c5bef86 Compare January 19, 2025 00:47
@HC-kang HC-kang merged commit a6a6516 into main Jan 19, 2025
6 checks passed
@HC-kang HC-kang deleted the 191-remove-currentcohort branch January 19, 2025 00:56
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.

MemberIdentity에서 currentCohort 제거
3 participants