From b7d159eda292c26dc743421baab5f27d7b785298 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Thu, 7 Dec 2023 23:56:09 +0800 Subject: [PATCH] use underscore reduce --- src/pages/home/report/ContextMenu/ContextMenuActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ContextMenu/ContextMenuActions.js b/src/pages/home/report/ContextMenu/ContextMenuActions.js index e642f062d974..4f8fb98873d7 100644 --- a/src/pages/home/report/ContextMenu/ContextMenuActions.js +++ b/src/pages/home/report/ContextMenu/ContextMenuActions.js @@ -285,7 +285,7 @@ export default [ const logMessage = ReportUtils.getChannelLogMemberMessage(reportAction); Clipboard.setString(logMessage); } else if (ReportActionsUtils.isSubmittedExpenseAction(reportAction)) { - const submittedMessage = reportAction.message.reduce((acc, curr) => `${acc}${curr.text}`, ''); + const submittedMessage = _.reduce(reportAction.message, (acc, curr) => `${acc}${curr.text}`, ''); Clipboard.setString(submittedMessage); } else if (content) { const parser = new ExpensiMark();