We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f0c2fb + 0790afb commit b31fcf6Copy full SHA for b31fcf6
1 file changed
src/pages/inbox/report/ReportActionsList.tsx
@@ -260,6 +260,17 @@ function ReportActionsList({
260
// eslint-disable-next-line react-hooks/exhaustive-deps
261
}, [report.reportID]);
262
263
+ // When lastReadTime transitions from empty to a real value (e.g., data hasn't
264
+ // loaded yet after sign-in), update the marker so it uses the fresh value
265
+ // instead of the empty string from initial mount.
266
+ useEffect(() => {
267
+ if (reportLastReadTime === '' || unreadMarkerTime !== '') {
268
+ return;
269
+ }
270
+ setUnreadMarkerTime(reportLastReadTime);
271
+ // eslint-disable-next-line react-hooks/exhaustive-deps
272
+ }, [reportLastReadTime]);
273
+
274
const prevUnreadMarkerReportActionID = useRef<string | null>(null);
275
276
/**
0 commit comments