From 35d234c1fe02c2e1e5138576b6798b188a2a9e79 Mon Sep 17 00:00:00 2001 From: Agata Kosior Date: Fri, 24 Nov 2023 12:13:29 +0100 Subject: [PATCH] fix: add missing default value --- src/libs/OptionsListUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/OptionsListUtils.js b/src/libs/OptionsListUtils.js index 14bee6e79776..5fa1ada10457 100644 --- a/src/libs/OptionsListUtils.js +++ b/src/libs/OptionsListUtils.js @@ -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);