Skip to content

Commit

Permalink
use underscore reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Dec 7, 2023
1 parent 35372e5 commit b7d159e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ContextMenu/ContextMenuActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b7d159e

Please sign in to comment.