Skip to content

Commit 36ad1fe

Browse files
committed
code formatting
1 parent 5fd8284 commit 36ad1fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/controls/peoplepicker/PeoplePickerComponent.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,15 @@ export class PeoplePicker extends React.Component<IPeoplePickerProps, IPeoplePic
9595
for (const userValue of props.defaultSelectedUsers) {
9696
let valueAndTitle: string[] = [];
9797
valueAndTitle.push(userValue);
98-
if (userValue && userValue.indexOf('/') > -1)
98+
if (userValue && userValue.indexOf('/') > -1) {
9999
valueAndTitle = userValue.split('/');
100+
}
101+
100102
const userResult = await this.peopleSearchService.searchPersonByEmailOrLogin(valueAndTitle[0], principalTypes, webAbsoluteUrl, this.groupId, ensureUser);
101103
if (userResult) {
102104
selectedPersons.push(userResult);
103105
}
104-
else if (valueAndTitle.length == 2 && valueAndTitle[1]) { //user not found.. bind the title if exists
106+
else if (valueAndTitle.length === 2 && valueAndTitle[1]) { //user not found.. bind the title if exists
105107
const inactiveUser: IPersonaProps = { text: valueAndTitle[1] };
106108
selectedPersons.push(inactiveUser);
107109
}

0 commit comments

Comments
 (0)