From fc3c0bb8c6cf04b8c81c71897e3052f4effe1cff Mon Sep 17 00:00:00 2001 From: Sobit Neupane <073bct543.sobit@pcampus.edu.np> Date: Sun, 3 Apr 2022 21:47:44 +0545 Subject: [PATCH] Destructure isReportMessageAttachment parameter Co-authored-by: Luke Donahue <49007721+Luke9389@users.noreply.github.com> --- src/libs/reportUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/reportUtils.js b/src/libs/reportUtils.js index 5ad93f313ca4..428eb0d75ac3 100644 --- a/src/libs/reportUtils.js +++ b/src/libs/reportUtils.js @@ -29,8 +29,8 @@ function getReportParticipantsTitle(logins) { * @param {Object} reportActionMessage report action's message as text and html * @returns {Boolean} */ -function isReportMessageAttachment(reportActionMessage) { - return reportActionMessage.text === '[Attachment]' && reportActionMessage.html !== '[Attachment]'; +function isReportMessageAttachment({text, html}) { + return text === '[Attachment]' && html !== '[Attachment]'; } /**