Skip to content

Commit

Permalink
fix: support new and old error code
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 committed Oct 8, 2024
1 parent b00e597 commit 8c742e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class RelationshipsController extends TransportController {
throw TransportCoreErrors.relationships.activeIdentityDeletionProcessOfOwnerOfRelationshipTemplate();
}

if (result.error.code === "error.platform.validation.relationshipRequest.relationshipToTargetAlreadyExists") {
if (result.error.code.startsWith("error.platform.validation.") && result.error.code.endsWith(".relationshipToTargetAlreadyExists")) {
throw TransportCoreErrors.relationships.relationshipNotYetDecomposedByPeer();
}

Expand Down

0 comments on commit 8c742e5

Please sign in to comment.