diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index ed80f0235ae7..8dcba0311a84 100755 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -156,11 +156,11 @@ class ReportActionsView extends React.Component { } // If the new marker has changed places, update the component. - if (nextProps.report.newMarkerSequenceNumber !== this.props.report.newMarkerSequenceNumber) { + if (lodashGet(nextProps.report, 'newMarkerSequenceNumber') !== lodashGet(this.props.report, 'newMarkerSequenceNumber')) { return true; } - if (nextProps.network.isOffline !== this.props.network.isOffline) { + if (lodashGet(nextProps.network, 'isOffline') !== lodashGet(this.props.network, 'isOffline')) { return true; } @@ -188,7 +188,7 @@ class ReportActionsView extends React.Component { return true; } - if (this.props.report.hasOutstandingIOU !== nextProps.report.hasOutstandingIOU) { + if (lodashGet(this.props.report, 'hasOutstandingIOU') !== lodashGet(nextProps.report, 'hasOutstandingIOU')) { return true; }