Skip to content

Commit

Permalink
use PolicyUtils.getSubmitToAccountID
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Jun 4, 2024
1 parent 24c5fe2 commit 9eec94e
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 @@ -3850,7 +3850,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 9eec94e

Please sign in to comment.