Skip to content

Commit

Permalink
Update comment ReportSceen
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Davies <[email protected]>
  • Loading branch information
dukenv0307 and jjcoffee authored Mar 14, 2024
1 parent f518953 commit d78c0f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ function ReportScreen({
return;
}
Report.openReport(report.reportID);
// I'm disabling the warning because we don't want run this useEffect when report is changed

// We don't want to run this useEffect every time `report` is changed
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [prevIsFocused, report.notificationPreference, isFocused]);

Expand Down

0 comments on commit d78c0f1

Please sign in to comment.