Skip to content

Commit

Permalink
🐛 그룹 생성 시 규칙을 제대로 정하지 않았을 때 이슈 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
soopeach committed Dec 9, 2022
1 parent 60795e2 commit c0b050f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ class CreateGroupViewModel @Inject constructor(
}

fun onDialogConfirm(date: String, hour: String, minute: String) {
rules.value = rules.value + listOf("$date-$hour-$minute")
if (date.isNotEmpty() && hour.isNotEmpty() && minute.isNotEmpty()) {
rules.value = rules.value + listOf("$date-$hour-$minute")
}

_showDialog.value = false
}

Expand Down

0 comments on commit c0b050f

Please sign in to comment.