Skip to content

Commit

Permalink
fix: empty condition
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Oct 21, 2023
1 parent b0c9b95 commit 90c915b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/UnreadIndicatorUpdater/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (reportsFromOnyx) => {
const unreadReports = _.filter(reportsFromOnyx, (report) => ReportUtils.unread(report) && ReportUtils.isEmptyReport(report));
const unreadReports = _.filter(reportsFromOnyx, (report) => ReportUtils.isUnread(report) && !ReportUtils.isEmptyReport(report));
updateUnread(_.size(unreadReports));
},
});

0 comments on commit 90c915b

Please sign in to comment.