Skip to content

Commit

Permalink
Merge pull request #31817 from koko57/fix/31803-add-missing-default-v…
Browse files Browse the repository at this point in the history
…alue

[CP Staging] fix: add missing default value

(cherry picked from commit 8c4407e)
  • Loading branch information
mountiny authored and OSBotify committed Nov 24, 2023
1 parent 1f7a85c commit 61dc492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ function getAllReportErrors(report, reportActions) {
* @param {Boolean} [isPreviewMessageForParentChatReport]
* @returns {String}
*/
function getReportPreviewMessageForOptionList(report, reportAction, isPreviewMessageForParentChatReport = false) {
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
if (!isPreviewMessageForParentChatReport && reportAction.originalMessage && reportAction.originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.CREATE) {
const amount = Math.abs(reportAction.originalMessage.amount);
Expand Down

0 comments on commit 61dc492

Please sign in to comment.