From 60795e2b9e5a70d2c374197e3fdd3dcfee200cfa Mon Sep 17 00:00:00 2001 From: soopeach Date: Fri, 9 Dec 2022 17:42:29 +0900 Subject: [PATCH 1/2] =?UTF-8?q?:bug:=20=EA=B7=B8=EB=A3=B9=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EC=8B=9C=20=EC=95=B1=EC=9D=B4=20=ED=84=B0=EC=A7=80?= =?UTF-8?q?=EB=8A=94=20=EC=9D=B4=EC=8A=88=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/src/main/java/com/whyranoid/domain/model/Rule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/src/main/java/com/whyranoid/domain/model/Rule.kt b/domain/src/main/java/com/whyranoid/domain/model/Rule.kt index b233f036..a86dccd9 100644 --- a/domain/src/main/java/com/whyranoid/domain/model/Rule.kt +++ b/domain/src/main/java/com/whyranoid/domain/model/Rule.kt @@ -6,7 +6,7 @@ data class Rule( val minute: Int ) { override fun toString(): String { - return "${dayOfWeek.dayResId}요일${hour}시${minute}분" + return "${dayOfWeek.dayResId}-$hour-$minute" } } From c0b050f9da5d8b0e8afc7571beb4cd8bf27c59bd Mon Sep 17 00:00:00 2001 From: soopeach Date: Fri, 9 Dec 2022 17:48:19 +0900 Subject: [PATCH 2/2] =?UTF-8?q?:bug:=20=EA=B7=B8=EB=A3=B9=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=20=EC=8B=9C=20=EA=B7=9C=EC=B9=99=EC=9D=84=20=EC=A0=9C?= =?UTF-8?q?=EB=8C=80=EB=A1=9C=20=EC=A0=95=ED=95=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EC=95=98=EC=9D=84=20=EB=95=8C=20=EC=9D=B4=EC=8A=88=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../community/group/create/CreateGroupViewModel.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/presentation/src/main/java/com/whyranoid/presentation/community/group/create/CreateGroupViewModel.kt b/presentation/src/main/java/com/whyranoid/presentation/community/group/create/CreateGroupViewModel.kt index 65a65bd6..1db23b5e 100644 --- a/presentation/src/main/java/com/whyranoid/presentation/community/group/create/CreateGroupViewModel.kt +++ b/presentation/src/main/java/com/whyranoid/presentation/community/group/create/CreateGroupViewModel.kt @@ -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 }