diff --git a/src/pages/iou/steps/IOUAmountPage.js b/src/pages/iou/steps/IOUAmountPage.js index 8d2bc5d00783..c1b42042e108 100755 --- a/src/pages/iou/steps/IOUAmountPage.js +++ b/src/pages/iou/steps/IOUAmountPage.js @@ -42,17 +42,11 @@ const propTypes = { /** Selected Currency Code of the current IOU */ selectedCurrencyCode: PropTypes.string, - }), + }).isRequired, ...withLocalizePropTypes, }; -const defaultProps = { - iou: { - selectedCurrencyCode: CONST.CURRENCY.USD, - }, -}; - class IOUAmountPage extends React.Component { constructor(props) { super(props); @@ -222,7 +216,7 @@ class IOUAmountPage extends React.Component { placeholder={this.props.numberFormat(0)} preferredLocale={this.props.preferredLocale} ref={el => this.textInput = el} - selectedCurrencyCode={this.props.iou.selectedCurrencyCode} + selectedCurrencyCode={this.props.iou.selectedCurrencyCode || CONST.CURRENCY.USD} /> @@ -248,7 +242,6 @@ class IOUAmountPage extends React.Component { } IOUAmountPage.propTypes = propTypes; -IOUAmountPage.defaultProps = defaultProps; export default compose( withLocalize,