Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rushatgabhane committed Jul 6, 2024
1 parent 7c05a27 commit a422850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
setIsUnapproveModalVisible(false);
Navigation.dismissModal();
IOU.unapproveExpenseReport(moneyRequestReport);
}, [moneyRequestReport]);
}, [moneyRequestReport, policy]);

const shouldShowLeaveButton =
!isThread && (isGroupChat || (isChatRoom && ReportUtils.canLeaveChat(report, policy)) || (isPolicyExpenseChat && !report.isOwnPolicyExpenseChat && !isPolicyAdmin));
Expand Down

0 comments on commit a422850

Please sign in to comment.