diff --git a/src/pages/ReportWelcomeMessagePage.js b/src/pages/ReportWelcomeMessagePage.js index 8e9b97340810..2e358e88a1b3 100644 --- a/src/pages/ReportWelcomeMessagePage.js +++ b/src/pages/ReportWelcomeMessagePage.js @@ -18,7 +18,7 @@ import CONST from '../CONST'; import FullPageNotFoundView from '../components/BlockingViews/FullPageNotFoundView'; import Form from '../components/Form'; import * as PolicyUtils from '../libs/PolicyUtils'; -import {policyPropTypes} from './workspace/withPolicy'; +import {policyPropTypes, policyDefaultProps} from './workspace/withPolicy'; const propTypes = { ...withLocalizePropTypes, @@ -37,7 +37,7 @@ const propTypes = { }; const defaultProps = { - policy: {}, + ...policyDefaultProps, }; function ReportWelcomeMessagePage(props) { diff --git a/src/pages/settings/Report/WriteCapabilityPage.js b/src/pages/settings/Report/WriteCapabilityPage.js index b9fed0a63ba1..e831d539f440 100644 --- a/src/pages/settings/Report/WriteCapabilityPage.js +++ b/src/pages/settings/Report/WriteCapabilityPage.js @@ -1,6 +1,5 @@ import React from 'react'; import _ from 'underscore'; -import PropTypes from 'prop-types'; import {withOnyx} from 'react-native-onyx'; import ONYXKEYS from '../../../ONYXKEYS'; import CONST from '../../../CONST'; @@ -20,7 +19,7 @@ import themeColors from '../../../styles/themes/default'; import * as ReportUtils from '../../../libs/ReportUtils'; import FullPageNotFoundView from '../../../components/BlockingViews/FullPageNotFoundView'; import * as PolicyUtils from '../../../libs/PolicyUtils'; -import {policyPropTypes} from '../../workspace/withPolicy'; +import {policyPropTypes, policyDefaultProps} from '../../workspace/withPolicy'; const propTypes = { ...withLocalizePropTypes, @@ -31,7 +30,7 @@ const propTypes = { }; const defaultProps = { - policy: {}, + ...policyDefaultProps, }; const greenCheckmark = {src: Expensicons.Checkmark, color: themeColors.success};