Skip to content

Commit

Permalink
Merge pull request #29930 from c3024/29453-skip-getting-personalDetai…
Browse files Browse the repository at this point in the history
…l-for-0-accountID

skip getting personalDetail for 0 accountID
  • Loading branch information
puneetlath authored Oct 19, 2023
2 parents ce892f7 + 352579f commit e726c62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ function getPersonalDetailsForAccountIDs(accountIDs, personalDetails) {
}
_.each(accountIDs, (accountID) => {
const cleanAccountID = Number(accountID);
if (!cleanAccountID) {
return;
}
let personalDetail = personalDetails[accountID];
if (!personalDetail) {
personalDetail = {
Expand Down

0 comments on commit e726c62

Please sign in to comment.