From 9eec94e44d674442649131f3e673ef768c67f10a Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 4 Jun 2024 12:00:25 +0800 Subject: [PATCH] use PolicyUtils.getSubmitToAccountID --- src/libs/ReportUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 848376fb4b6d..e74e167808db 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -3850,7 +3850,7 @@ function getIOUSubmittedMessage(report: OnyxEntry) { ]; } - 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})` : '' }`;