From dce9b352115c614c39c4c4793d5ddbfdef730505 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Mon, 22 May 2023 21:25:30 +0700 Subject: [PATCH] remove loading logic in IOUDetailsModal --- src/pages/iou/IOUDetailsModal.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/pages/iou/IOUDetailsModal.js b/src/pages/iou/IOUDetailsModal.js index fc8b975447f9..84de2a089242 100644 --- a/src/pages/iou/IOUDetailsModal.js +++ b/src/pages/iou/IOUDetailsModal.js @@ -87,9 +87,6 @@ const propTypes = { hasOutstandingIOU: PropTypes.bool.isRequired, }), - /** Indicated whether the report data is loading */ - isLoadingReportData: PropTypes.bool, - ...withLocalizePropTypes, }; @@ -103,7 +100,6 @@ const defaultProps = { chatReport: { participants: [], }, - isLoadingReportData: true, }; class IOUDetailsModal extends Component { @@ -138,10 +134,6 @@ class IOUDetailsModal extends Component { } render() { - if (this.props.isLoadingReportData && _.isEmpty(this.props.iouReport)) { - return ; - } - const sessionEmail = lodashGet(this.props.session, 'email', null); const pendingAction = this.findPendingAction(); const iouReportStateNum = lodashGet(this.props.iouReport, 'stateNum'); @@ -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);