Skip to content

Commit fc3c0bb

Browse files
Destructure isReportMessageAttachment parameter
Co-authored-by: Luke Donahue <[email protected]>
1 parent eb91d95 commit fc3c0bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/reportUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ function getReportParticipantsTitle(logins) {
2929
* @param {Object} reportActionMessage report action's message as text and html
3030
* @returns {Boolean}
3131
*/
32-
function isReportMessageAttachment(reportActionMessage) {
33-
return reportActionMessage.text === '[Attachment]' && reportActionMessage.html !== '[Attachment]';
32+
function isReportMessageAttachment({text, html}) {
33+
return text === '[Attachment]' && html !== '[Attachment]';
3434
}
3535

3636
/**

0 commit comments

Comments
 (0)