File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
domain/src/main/java/com/whyranoid/domain/model
presentation/src/main/java/com/whyranoid/presentation/community/group/create Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ data class Rule(
66 val minute : Int
77) {
88 override fun toString (): String {
9- return " ${dayOfWeek.dayResId} ์์ผ ${ hour} ์ ${ minute} ๋ถ "
9+ return " ${dayOfWeek.dayResId} - $ hour- $ minute"
1010 }
1111}
1212
Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ class CreateGroupViewModel @Inject constructor(
3939 }
4040
4141 fun onDialogConfirm (date : String , hour : String , minute : String ) {
42- rules.value = rules.value + listOf (" $date -$hour -$minute " )
42+ if (date.isNotEmpty() && hour.isNotEmpty() && minute.isNotEmpty()) {
43+ rules.value = rules.value + listOf (" $date -$hour -$minute " )
44+ }
45+
4346 _showDialog .value = false
4447 }
4548
You canโt perform that action at this time.
0 commit comments