File tree Expand file tree Collapse file tree
Projects/Presentation/Sources/Home/ViewModel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ final class HomeViewModel: ViewModel {
2323 private( set) var output : Output
2424 private var routines : [ String : [ MainRoutine ] ] = [ : ]
2525 private let nicknameSubject = CurrentValueSubject < String , Never > ( " " )
26- private let routinesSuject = CurrentValueSubject < [ MainRoutine ] , Never > ( [ ] )
26+ private let routinesSubject = CurrentValueSubject < [ MainRoutine ] , Never > ( [ ] )
2727
2828 init ( ) {
2929 self . output = Output (
3030 nicknamePublisher: nicknameSubject. eraseToAnyPublisher ( ) ,
31- routinesPublisher: routinesSuject . eraseToAnyPublisher ( )
31+ routinesPublisher: routinesSubject . eraseToAnyPublisher ( )
3232 )
3333 }
3434
@@ -98,9 +98,9 @@ final class HomeViewModel: ViewModel {
9898 private func fetchRoutines( for date: Date ) {
9999 let dateKey = date. convertToString ( dateType: . yearMonthDate)
100100 guard let dailyRoutines = routines [ dateKey] else {
101- routinesSuject . send ( [ ] )
101+ routinesSubject . send ( [ ] )
102102 return
103103 }
104- routinesSuject . send ( dailyRoutines)
104+ routinesSubject . send ( dailyRoutines)
105105 }
106106}
You can’t perform that action at this time.
0 commit comments