Skip to content

Commit

Permalink
๐Ÿ”€ #93 from boostcampwm-2022/hotfix/groupCreateRule
Browse files Browse the repository at this point in the history
[ํ•ซํ”ฝ์Šค] - ๊ทœ์น™ ๊ด€๋ จ ์ด์Šˆ ํ•ด๊ฒฐ
  • Loading branch information
soopeach authored Dec 10, 2022
2 parents bfc428e + c0b050f commit fcddadd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion domain/src/main/java/com/whyranoid/domain/model/Rule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ data class Rule(
val minute: Int
) {
override fun toString(): String {
return "${dayOfWeek.dayResId}์š”์ผ${hour}์‹œ${minute}๋ถ„"
return "${dayOfWeek.dayResId}-$hour-$minute"
}
}

Expand Down
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 fcddadd

Please sign in to comment.