File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
api/src/main/java/com/getcode/network/repository Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -133,12 +133,16 @@ class PaymentRepository @Inject constructor(
133
133
val organizer =
134
134
SessionManager .getOrganizer() ? : throw PaymentError .OrganizerNotFound ()
135
135
136
- // / 4. Establish a relationship if a domain is provided. If a verifier
136
+ // 4. Establish a relationship if a domain is provided. If a verifier
137
137
// is present that means the domain has been verified by the server.
138
138
val domain = receiveRequest.domain
139
- if (domain != null && receiveRequest.verifier != null && organizer.relationshipFor(domain) != null
140
- ) {
141
- client.establishRelationshipSingle(organizer, domain).blockingGet()
139
+ if (domain != null ) {
140
+ if (
141
+ receiveRequest.verifier != null &&
142
+ organizer.relationshipFor(domain) == null
143
+ ) {
144
+ client.establishRelationshipSingle(organizer, domain).blockingGet()
145
+ }
142
146
}
143
147
144
148
// 5. Complete the transfer.
You can’t perform that action at this time.
0 commit comments