Skip to content

fix: [TA-241] Terms allCheck 상태가 수동 개별 체크 시 자동 동기화되지 않음#98

Merged
seorinn merged 2 commits into
developfrom
TA-241-fix-terms-allcheck-sync
May 13, 2026
Merged

fix: [TA-241] Terms allCheck 상태가 수동 개별 체크 시 자동 동기화되지 않음#98
seorinn merged 2 commits into
developfrom
TA-241-fix-terms-allcheck-sync

Conversation

@seorinn

@seorinn seorinn commented May 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Terms/index.tsxuseEffect에서 개별 항목이 모두 체크됐을 때 setAllCheck(true)가 호출되지 않던 버그 수정
  • 기존: 체크 안 된 항목이 있으면 setAllCheck(false)만 설정, 모두 체크된 경우 allCheck 상태 미갱신
  • 변경: roleItems.every() 로 role에 맞는 항목 전체 체크 여부를 판단해 setAllCheck / setIsValid를 일관되게 설정

Test plan

  • 약관 동의 화면에서 '모두 동의합니다' 없이 개별 항목을 하나씩 모두 체크 → 전체 동의 체크박스 활성화 확인
  • '모두 동의합니다' 클릭 → 전체 체크 → 전체 동의 체크박스 활성화 확인
  • 전체 체크 후 개별 항목 하나 해제 → 전체 동의 체크박스 비활성화 확인
  • PHOTOGRAPHER role에서 입점 작가 약관까지 모두 체크 시 전체 동의 활성화 확인

Closes #TA-241

@vercel

vercel Bot commented May 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
damaba Ready Ready Preview, Comment May 13, 2026 6:49am

@seorinn seorinn marked this pull request as ready for review May 13, 2026 06:51
@seorinn seorinn merged commit b89e3d5 into develop May 13, 2026
3 checks passed
@seorinn seorinn deleted the TA-241-fix-terms-allcheck-sync branch May 13, 2026 06:51
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.

1 participant