diff --git a/src/components/MoneyReportHeader.js b/src/components/MoneyReportHeader.js index 3ccd61d32961..8110199bafd8 100644 --- a/src/components/MoneyReportHeader.js +++ b/src/components/MoneyReportHeader.js @@ -35,7 +35,7 @@ const propTypes = { /** The role of the current user in the policy */ role: PropTypes.string, - }).isRequired, + }), /** The chat report this report is linked to */ chatReport: reportPropTypes, @@ -57,6 +57,7 @@ const defaultProps = { session: { email: null, }, + policy: {}, }; function MoneyReportHeader({session, personalDetails, policy, chatReport, report: moneyRequestReport, isSmallScreenWidth}) { diff --git a/src/components/MoneyRequestHeader.js b/src/components/MoneyRequestHeader.js index 7f1e58912128..6f444eff9b05 100644 --- a/src/components/MoneyRequestHeader.js +++ b/src/components/MoneyRequestHeader.js @@ -29,7 +29,7 @@ const propTypes = { policy: PropTypes.shape({ /** Name of the policy */ name: PropTypes.string, - }).isRequired, + }), /** Personal details so we can get the ones for the report participants */ personalDetails: PropTypes.objectOf(participantPropTypes).isRequired, @@ -58,6 +58,7 @@ const defaultProps = { parentReport: {}, parentReportAction: {}, transaction: {}, + policy: {}, }; function MoneyRequestHeader({session, parentReport, report, parentReportAction, transaction, policy, personalDetails}) {