diff --git a/src/components/ReportWelcomeText.js b/src/components/ReportWelcomeText.js index 905e6e0310e0..024582fb2b41 100644 --- a/src/components/ReportWelcomeText.js +++ b/src/components/ReportWelcomeText.js @@ -28,7 +28,13 @@ const personalDetailsPropTypes = PropTypes.shape({ const propTypes = { /** The report currently being looked at */ - report: PropTypes.oneOfType([PropTypes.object]), + report: PropTypes.shape({ + /** The id of the report */ + reportID: PropTypes.number, + + /** The report owner's email */ + ownerEmail: PropTypes.string, + }).isRequired, /* Onyx Props */ @@ -45,7 +51,6 @@ const propTypes = { }; const defaultProps = { - report: {}, policies: {}, }; diff --git a/src/pages/home/report/ReportActionItemCreated.js b/src/pages/home/report/ReportActionItemCreated.js index 0259d86e545c..f567dd61eeb0 100644 --- a/src/pages/home/report/ReportActionItemCreated.js +++ b/src/pages/home/report/ReportActionItemCreated.js @@ -13,6 +13,9 @@ import OfflineWithFeedback from '../../../components/OfflineWithFeedback'; import * as Report from '../../../libs/actions/Report'; const propTypes = { + /** The id of the report */ + reportID: PropTypes.number.isRequired, + /** The report currently being looked at */ report: PropTypes.shape({ /** The id of the report */ @@ -23,7 +26,7 @@ const propTypes = { /** Whether the user is not an admin of policyExpenseChat chat */ isOwnPolicyExpenseChat: PropTypes.bool, - }), + }).isRequired, /** Personal details of all the users */ personalDetails: PropTypes.objectOf(participantPropTypes), @@ -35,7 +38,6 @@ const propTypes = { }), }; const defaultProps = { - report: {}, personalDetails: {}, policies: {}, };