Skip to content

Commit cd752eb

Browse files
committed
feat : 알람 중복 등록 문제 해결
1 parent 6ad014b commit cd752eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

presentation/src/main/java/com/stop/ui/alarmsetting/AlarmSettingViewModel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class AlarmSettingViewModel @Inject constructor(
6262
_alarmItem.value = it
6363

6464
if (it != null) {
65-
when(missionStatus){
65+
when (missionStatus) {
6666
MissionStatus.BEFORE -> {
6767
alarmStatus.value = AlarmStatus.EXIST
6868
}
@@ -87,6 +87,7 @@ class AlarmSettingViewModel @Inject constructor(
8787
}
8888

8989
fun callAlarm(time: String) {
90+
deleteAlarm()
9091
alarmFunctions.callAlarm(time, alarmTime.value ?: 0)
9192
}
9293

0 commit comments

Comments
 (0)