Skip to content

Commit

Permalink
[#88] 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJoEun-01 committed Mar 3, 2025
1 parent 35679c9 commit 1c68965
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct SemesterListReducer {
case binding(BindingAction<State>)
case onAppear
case onRefresh
case totalReportCardReponse(Result<TotalReportCard, Error>)
case totalReportCardResponse(Result<TotalReportCard, Error>)
case semesterListResponse(Result<[GradeSummary], Error>)
}

Expand All @@ -37,7 +37,7 @@ struct SemesterListReducer {
switch action {
case .onAppear:
return .run { send in
await send(.totalReportCardReponse(Result {
await send(.totalReportCardResponse(Result {
return try await gradeClient.getTotalReportCard()
}))
await send(.semesterListResponse(Result {
Expand All @@ -55,16 +55,16 @@ struct SemesterListReducer {
let allSemesterGrades = try await gradeClient.fetchAllSemesterGrades()
try await gradeClient.updateAllSemesterGrades(allSemesterGrades)

await send(.totalReportCardReponse(Result {
await send(.totalReportCardResponse(Result {
return try await gradeClient.getTotalReportCard()
}))
await send(.semesterListResponse(Result {
return try await gradeClient.getAllSemesterGrades()
})) }
case .totalReportCardReponse(.success(let totalReportCard)):
case .totalReportCardResponse(.success(let totalReportCard)):
state.totalReportCard = totalReportCard
return .none
case .totalReportCardReponse(.failure(let error)):
case .totalReportCardResponse(.failure(let error)):
debugPrint(error)
YDSToast(String(describing: error), haptic: .failed)
return .none
Expand Down

0 comments on commit 1c68965

Please sign in to comment.