Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed May 27, 2024
1 parent 7503d76 commit 7d0e6fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,10 @@ function ReportScreen({
}, [reportActionIDFromRoute, sortedAllReportActions]);

useEffect(() => {
if (isInaccessibleWhisper) {
Navigation.setParams({reportActionID: ''});
if (!isInaccessibleWhisper) {
return;
}
Navigation.setParams({reportActionID: ''});
}, [isInaccessibleWhisper]);

if ((!isInaccessibleWhisper && isLinkedReportActionDeleted) ?? (!shouldShowSkeleton && reportActionIDFromRoute && reportActions?.length === 0 && !isLinkingToMessage)) {
Expand Down

0 comments on commit 7d0e6fa

Please sign in to comment.