Skip to content

Commit

Permalink
Merge pull request Expensify#43019 from bernhardoj/chore/use-getSubmi…
Browse files Browse the repository at this point in the history
…tToAccountID-from-policy-utils

Replace policy.submitsTo with PolicyUtils.getSubmitToAccountID #2
  • Loading branch information
jasperhuangg authored Jun 5, 2024
2 parents 8dbec8d + 9eec94e commit a68d104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3867,7 +3867,7 @@ function getIOUSubmittedMessage(report: OnyxEntry<Report>) {
];
}

const submittedToPersonalDetail = getPersonalDetailsForAccountID(policy?.submitsTo ?? 0);
const submittedToPersonalDetail = getPersonalDetailsForAccountID(PolicyUtils.getSubmitToAccountID(policy, report?.ownerAccountID ?? 0));
let submittedToDisplayName = `${submittedToPersonalDetail.displayName ?? ''}${
submittedToPersonalDetail.displayName !== submittedToPersonalDetail.login ? ` (${submittedToPersonalDetail.login})` : ''
}`;
Expand Down

0 comments on commit a68d104

Please sign in to comment.