Skip to content

Commit

Permalink
Fix: 커리어 더하기 봉사활동 버튼 활성화 조건에 봉사시간 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kimyujin-com committed Feb 17, 2024
1 parent 7b1aed7 commit 7cf2aaa
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ class CareerAddVolunteerViewModel : ViewModel() {
}

private fun areBothFieldsFilled(): Boolean {
return !(title.value.isNullOrEmpty() || title.value!!.contains(" ") || title.value!!.length > 20) && isDateValid(
startDate.value
) && isDateValid(endDate.value)
return !(title.value.isNullOrEmpty() || title.value!!.contains(" ") || title.value!!.length > 20) && !hour.value.isNullOrBlank()
&& isDateValid(startDate.value) && isDateValid(endDate.value)
}

private fun isDateValid(date: String?): Boolean {
Expand Down

0 comments on commit 7cf2aaa

Please sign in to comment.