Skip to content

Commit 34d5477

Browse files
committed
Refactor: routinesSubject 오타 수정
1 parent 968c361 commit 34d5477

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Projects/Presentation/Sources/Home/ViewModel/HomeViewModel.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)