File tree Expand file tree Collapse file tree
DevLog/Presentation/ViewModel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ final class PushNotificationSettingsViewModel: Store {
4949 case . onAppear:
5050 return [ . fetchPushNotificationSettings]
5151 case . setPushNotificationEnable( let value) :
52- state. pushNotificationEnable = value
52+ self . state. pushNotificationEnable = value
53+ return [ . updatePushNotificationSettings]
5354 case . setPushNotificationHour( let value) :
5455 // 시간만 변경
5556 if let newDate = calendar. date (
@@ -58,10 +59,12 @@ final class PushNotificationSettingsViewModel: Store {
5859 second: 0 ,
5960 of: state. pushNotificationTime
6061 ) {
61- state. pushNotificationTime = newDate
62+ self . state. pushNotificationTime = newDate
63+ return [ . updatePushNotificationSettings]
6264 }
6365 case . setPushNotificationTime( let value) :
64- state. pushNotificationTime = value
66+ self . state. pushNotificationTime = value
67+ return [ . updatePushNotificationSettings]
6568 case . setShowTimePicker( let value) :
6669 state. showTimePicker = value
6770 }
You can’t perform that action at this time.
0 commit comments