Skip to content

Commit

Permalink
Merge pull request #9886 from Expensify/marcaaron-isReportFullyVisible
Browse files Browse the repository at this point in the history
Fix crash when accessing bad method in `ReportActionsView`

(cherry picked from commit a6257d3)
  • Loading branch information
neil-marcellini authored and OSBotify committed Jul 13, 2022
1 parent 3b35803 commit c3df0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class ReportActionsView extends React.Component {

componentDidUpdate(prevProps) {
if (prevProps.network.isOffline && !this.props.network.isOffline) {
if (this.isReportFullyVisible()) {
if (this.getIsReportFullyVisible()) {
Report.openReport(this.props.reportID);
}
this.fetchData();
Expand Down

0 comments on commit c3df0ed

Please sign in to comment.