From f2ac9f7bdf08480527f9ae652f2a535ed402ed98 Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 8 Aug 2023 14:52:22 +0200 Subject: [PATCH] use || --- src/libs/ReportUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 394f993e85ff..1ff537be8ab6 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -1904,7 +1904,7 @@ function updateReportPreview(iouReport, reportPreviewAction, comment = '') { type: CONST.REPORT.MESSAGE.TYPE.COMMENT, }, ], - childLastMoneyRequestComment: comment ? comment : reportPreviewAction.childLastMoneyRequestComment, + childLastMoneyRequestComment: comment || reportPreviewAction.childLastMoneyRequestComment, childMoneyRequestCount: reportPreviewAction.childMoneyRequestCount + 1, }; }