Skip to content
Snippets Groups Projects
Commit 4843a17f authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Dismiss lookup on success

parent 618eae31
No related branches found
No related tags found
2 merge requests!112Restore contacts from backup,!102Release 1.0.0
This commit is part of merge request !112. Comments created here will be created in the context of that merge request.
...@@ -184,6 +184,7 @@ public let contactReducer = Reducer<ContactState, ContactAction, ContactEnvironm ...@@ -184,6 +184,7 @@ public let contactReducer = Reducer<ContactState, ContactAction, ContactEnvironm
case .lookup(.didLookup(let xxContact)): case .lookup(.didLookup(let xxContact)):
state.xxContact = xxContact state.xxContact = xxContact
state.lookup = nil
return .none return .none
case .sendRequestTapped: case .sendRequestTapped:
......
...@@ -145,6 +145,7 @@ final class ContactFeatureTests: XCTestCase { ...@@ -145,6 +145,7 @@ final class ContactFeatureTests: XCTestCase {
store.send(.lookup(.didLookup(contact))) { store.send(.lookup(.didLookup(contact))) {
$0.xxContact = contact $0.xxContact = contact
$0.lookup = nil
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment