diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index c1f2d13a..d00dd9fd 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -3615,7 +3615,7 @@ export class ProfileController extends Controller { }, relations: ["orgChild1"], }); - if (posMasters == null || posMasters.orgChild1 == null) { + if (posMasters == null) { return new HttpSuccess({ isOfficer: null, rootId: null, @@ -3626,7 +3626,7 @@ export class ProfileController extends Controller { }); } return new HttpSuccess({ - isOfficer: posMasters?.orgChild1?.isOfficer || null, + isOfficer: posMasters?.orgChild1?.isOfficer || false, rootId: posMasters?.orgRootId || null, child1Id: posMasters?.orgChild1Id || null, child2Id: posMasters?.orgChild2Id || null,