Skip to content

Commit

Permalink
remove loading logic in IOUDetailsModal
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed May 22, 2023
1 parent 3a3e559 commit dce9b35
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/pages/iou/IOUDetailsModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ const propTypes = {
hasOutstandingIOU: PropTypes.bool.isRequired,
}),

/** Indicated whether the report data is loading */
isLoadingReportData: PropTypes.bool,

...withLocalizePropTypes,
};

Expand All @@ -103,7 +100,6 @@ const defaultProps = {
chatReport: {
participants: [],
},
isLoadingReportData: true,
};

class IOUDetailsModal extends Component {
Expand Down Expand Up @@ -138,10 +134,6 @@ class IOUDetailsModal extends Component {
}

render() {
if (this.props.isLoadingReportData && _.isEmpty(this.props.iouReport)) {
return <FullScreenLoadingIndicator />;
}

const sessionEmail = lodashGet(this.props.session, 'email', null);
const pendingAction = this.findPendingAction();
const iouReportStateNum = lodashGet(this.props.iouReport, 'stateNum');
Expand Down Expand Up @@ -226,8 +218,5 @@ export default compose(
key: ({route}) => `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${route.params.chatReportID}`,
canEvict: false,
},
isLoadingReportData: {
key: ONYXKEYS.IS_LOADING_REPORT_DATA,
},
}),
)(IOUDetailsModal);

0 comments on commit dce9b35

Please sign in to comment.