Skip to content

Commit

Permalink
Made getValue an arrow function, just to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishal committed Dec 24, 2024
1 parent c2fe534 commit a27bd1e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ export class UserReferenceComponent implements OnInit, OnDestroy {
return user.userName;
};

getValue(user) {
getValue = user => {
if (this.displayAs$ === DROPDOWN_LIST) {
return this.utils.getUserId(user) || this.getUserName(user);
}
return this.isUserNameAvailable(user) ? this.getUserName(user) : this.utils.getUserId(user);
}
};

async checkAndUpdate() {
// Should always check the bridge to see if the component should
Expand Down

0 comments on commit a27bd1e

Please sign in to comment.