diff --git a/app/src/main/java/umc/com/mobile/project/ui/career/viewmodel/CareerEditCertificateViewModel.kt b/app/src/main/java/umc/com/mobile/project/ui/career/viewmodel/CareerEditCertificateViewModel.kt index 20f51d0..4b6f3e4 100644 --- a/app/src/main/java/umc/com/mobile/project/ui/career/viewmodel/CareerEditCertificateViewModel.kt +++ b/app/src/main/java/umc/com/mobile/project/ui/career/viewmodel/CareerEditCertificateViewModel.kt @@ -57,10 +57,6 @@ class CareerEditCertificateViewModel : ViewModel() { return !title.value.isNullOrBlank() || !type.value.isNullOrBlank() || !startDate.value.isNullOrBlank() || !endDate.value.isNullOrBlank() } - private fun isDateValid(date: String?): Boolean { - return date.isNullOrBlank() || date.length == 8 - } - fun updateCertificateType(selectedType: String) { type.value = selectedType } diff --git a/app/src/main/java/umc/com/mobile/project/ui/career/viewmodel/CareerEditContestViewModel.kt b/app/src/main/java/umc/com/mobile/project/ui/career/viewmodel/CareerEditContestViewModel.kt index 8bd6c79..0083373 100644 --- a/app/src/main/java/umc/com/mobile/project/ui/career/viewmodel/CareerEditContestViewModel.kt +++ b/app/src/main/java/umc/com/mobile/project/ui/career/viewmodel/CareerEditContestViewModel.kt @@ -57,10 +57,6 @@ class CareerEditContestViewModel : ViewModel() { return !title.value.isNullOrBlank() || !award.value.isNullOrBlank() || !startDate.value.isNullOrBlank() || !endDate.value.isNullOrBlank() } - private fun isDateValid(date: String?): Boolean { - return date.isNullOrBlank() || date.length == 8 - } - fun updateSelectedAward(selectedAward: String) { award.value = selectedAward } diff --git a/app/src/main/java/umc/com/mobile/project/ui/career/viewmodel/CareerEditVolunteerViewModel.kt b/app/src/main/java/umc/com/mobile/project/ui/career/viewmodel/CareerEditVolunteerViewModel.kt index 07fccca..cad2f85 100644 --- a/app/src/main/java/umc/com/mobile/project/ui/career/viewmodel/CareerEditVolunteerViewModel.kt +++ b/app/src/main/java/umc/com/mobile/project/ui/career/viewmodel/CareerEditVolunteerViewModel.kt @@ -57,10 +57,6 @@ class CareerEditVolunteerViewModel : ViewModel() { return !title.value.isNullOrBlank() || !hour.value.isNullOrBlank() || !startDate.value.isNullOrBlank() || !endDate.value.isNullOrBlank() } - private fun isDateValid(date: String?): Boolean { - return date.isNullOrBlank() || date.length == 8 - } - private val careerApiService = ApiClient.createService() private val _volunteerDetailInfo: MutableLiveData = MutableLiveData()