Skip to content

Commit

Permalink
[PC-347] areAllTermsAgreed에 required Filter 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Jan 11, 2025
1 parent e152008 commit dcc4db7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ data class SignUpState(
val termsCheckedInfo: Map<Int, Boolean> = emptyMap(),
val signUpPage: SignUpPage = SignUpPage.TermPage,
) : MavericksState {
val areAllTermsAgreed = terms.all { termsCheckedInfo.getOrDefault(it.id, false) }
val areAllTermsAgreed = terms.filter { it.required }
.all { termsCheckedInfo.getOrDefault(it.id, false) }

enum class SignUpPage {
TermPage,
Expand Down

0 comments on commit dcc4db7

Please sign in to comment.