Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/pages/settings/Payments/AddPayPalMePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import HeaderWithCloseButton from '../../../components/HeaderWithCloseButton';
import Text from '../../../components/Text';
import ScreenWrapper from '../../../components/ScreenWrapper';
import NameValuePair from '../../../libs/actions/NameValuePair';
import * as PaymentMethods from '../../../libs/actions/PaymentMethods';
import Navigation from '../../../libs/Navigation/Navigation';
import styles from '../../../styles/styles';
import withLocalize, {withLocalizePropTypes} from '../../../components/withLocalize';
Expand Down Expand Up @@ -43,19 +42,6 @@ class AddPayPalMePage extends React.Component {
this.setPayPalMeUsername = this.setPayPalMeUsername.bind(this);
}

componentDidMount() {
PaymentMethods.getPaymentMethods();
}

componentDidUpdate(prevProps) {
if (prevProps.payPalMeUsername === this.props.payPalMeUsername) {
return;
}

// eslint-disable-next-line react/no-did-update-set-state
this.setState({payPalMeUsername: this.props.payPalMeUsername});
}

/**
* Sets the payPalMeUsername for the current user
*/
Expand Down