diff --git a/src/components/FormAlertWrapper.js b/src/components/FormAlertWrapper.js index 93b196f1bb6b..5e4a25861d08 100644 --- a/src/components/FormAlertWrapper.js +++ b/src/components/FormAlertWrapper.js @@ -17,7 +17,7 @@ import withLocalize, {withLocalizePropTypes} from './withLocalize'; const propTypes = { /** Wrapped child components */ - children: PropTypes.node.isRequired, + children: PropTypes.func.isRequired, /** Styles for container element */ containerStyles: PropTypes.arrayOf(PropTypes.object), diff --git a/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js b/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js index e0b6b61d4668..ed17fa0bb195 100644 --- a/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js +++ b/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js @@ -43,7 +43,9 @@ class BasePaymentsPage extends React.Component { shouldShowConfirmPopover: false, isSelectedPaymentMethodDefault: false, selectedPaymentMethod: {}, - formattedSelectedPaymentMethod: {}, + formattedSelectedPaymentMethod: { + title: '', + }, anchorPositionTop: 0, anchorPositionLeft: 0, addPaymentMethodButton: null,