Skip to content

Commit

Permalink
pr fix: Remove CancelID.teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy-Prime committed May 25, 2024
1 parent 6407b4a commit 4c4163b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions EhPanda/View/Setting/Login/LoginReducer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import ComposableArchitecture
struct LoginReducer: Reducer {
private enum CancelID: Hashable {
case login
case teardown
}

enum Route: Equatable {
Expand Down Expand Up @@ -64,7 +63,7 @@ struct LoginReducer: Reducer {
return .none

case .teardown:
return .cancel(id: CancelID.teardown)
return .cancel(id: CancelID.login)

case .login:
guard !state.loginButtonDisabled || state.loginState == .loading else { return .none }
Expand Down

0 comments on commit 4c4163b

Please sign in to comment.