diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index b729dbe89c90..bea7a0e82b48 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -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; @@ -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