Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Jan 13, 2025
1 parent 1d94320 commit caf7cfe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ function readNewestAction(reportID: string | undefined, shouldResetUnreadMarker
/**
* Sets the last read time on a report
*/
function markCommentAsUnread(reportID: string | undefined, reportActionCreated: string | undefined) {
function markCommentAsUnread(reportID: string | undefined, reportActionCreated: string) {
if (!reportID) {
Log.warn('7339cd6c-3263-4f89-98e5-730f0be15784 Invalid report passed to MarkCommentAsUnread. Not calling the API because it wil fail.');
return;
Expand All @@ -1386,7 +1386,6 @@ function markCommentAsUnread(reportID: string | undefined, reportActionCreated:

// If no action created date is provided, use the last action's from other user
const actionCreationTime =
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
reportActionCreated || (latestReportActionFromOtherUsers?.created ?? allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportID}`]?.lastVisibleActionCreated ?? DateUtils.getDBTime(0));

// We subtract 1 millisecond so that the lastReadTime is updated to just before a given reportAction's created date
Expand Down

0 comments on commit caf7cfe

Please sign in to comment.