Update openPairingConfirmationModal
This commit is contained in:
parent
c85b4cefe8
commit
a4d0f5a843
@ -95,11 +95,11 @@ export default class ModalService {
|
|||||||
|
|
||||||
public async openPairingConfirmationModal(roleDefinition: Record<string, RoleDefinition>, processId: string, stateId: string) {
|
public async openPairingConfirmationModal(roleDefinition: Record<string, RoleDefinition>, processId: string, stateId: string) {
|
||||||
let members;
|
let members;
|
||||||
if (roleDefinition['owner']) {
|
if (roleDefinition['pairing']) {
|
||||||
const owner = roleDefinition['owner'];
|
const owner = roleDefinition['pairing'];
|
||||||
members = owner.members;
|
members = owner.members;
|
||||||
} else {
|
} else {
|
||||||
throw new Error('No "owner" role');
|
throw new Error('No "pairing" role');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (members.length != 1) {
|
if (members.length != 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user