Skip to content

Commit

Permalink
Destructure isReportMessageAttachment parameter
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Donahue <49007721+Luke9389@users.noreply.github.com>
  • Loading branch information
sobitneupane and Luke9389 authored Apr 3, 2022
1 parent eb91d95 commit fc3c0bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/reportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]';
}

/**
Expand Down

0 comments on commit fc3c0bb

Please sign in to comment.