diff --git a/src/libs/OptionsListUtils.js b/src/libs/OptionsListUtils.js index 860aa1a6b380..14bee6e79776 100644 --- a/src/libs/OptionsListUtils.js +++ b/src/libs/OptionsListUtils.js @@ -375,14 +375,14 @@ function getAllReportErrors(report, reportActions) { /** * Get the preview message to be displayed in the option list. + * * @param {Object} report * @param {Object} reportAction * @param {Boolean} [isPreviewMessageForParentChatReport] * @returns {String} */ - function getReportPreviewMessageForOptionList(report, reportAction, isPreviewMessageForParentChatReport = false) { - // for the request action preview we want to show the requestor instead of the user who owes the money + // For the request action preview we want to show the requestor instead of the user who owes the money if (!isPreviewMessageForParentChatReport && reportAction.originalMessage && reportAction.originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.CREATE) { const amount = Math.abs(reportAction.originalMessage.amount); const formattedAmount = CurrencyUtils.convertToDisplayString(amount, report.currency); diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 6cb37b57a431..3deed6ec6a70 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -1838,10 +1838,9 @@ function getTransactionReportName(reportAction) { * @param {Number} actorID * @param {Boolean} [shouldShowWorkspaceName] * @param {Boolean} [shouldUseShortForm] - * @param {Object} [policy] - * @returns {String} + * @param {Object|undefined} [policy] + * @returns {String} */ - function getActorNameForPreviewMessage({report, actorID, shouldShowWorkspaceName = false, shouldUseShortForm = false, policy = undefined}) { return shouldShowWorkspaceName ? getPolicyName(report, false, policy) : getDisplayNameForParticipant(actorID, shouldUseShortForm); }