Skip to content

Commit

Permalink
Merge pull request #7741 from mdneyazahmad/fix/7518-default-payment-m…
Browse files Browse the repository at this point in the history
…ethod

Remove default payment method for paypal
  • Loading branch information
puneetlath authored Feb 15, 2022
2 parents c049cc4 + fa584f0 commit 0b7cc87
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class BasePaymentsPage extends React.Component {
wrapperStyle={[styles.pv0, styles.ph0, styles.mb4]}
/>
)}
{Permissions.canUseWallet(this.props.betas) && (
{Permissions.canUseWallet(this.props.betas) && !isPayPalMeSelected && (
<TouchableOpacity
onPress={() => {
this.setState({
Expand All @@ -308,10 +308,9 @@ class BasePaymentsPage extends React.Component {
passwordButtonText: this.props.translate('paymentsPage.setDefaultConfirmation'),
});
}}
style={[styles.button, isPayPalMeSelected && styles.buttonDisable, styles.alignSelfCenter, styles.w100]}
disabled={isPayPalMeSelected}
style={[styles.button, styles.alignSelfCenter, styles.w100]}
>
<Text style={[styles.buttonText, isPayPalMeSelected && styles.disabledText]}>
<Text style={[styles.buttonText]}>
{this.props.translate('paymentsPage.setDefaultConfirmation')}
</Text>
</TouchableOpacity>
Expand All @@ -326,7 +325,7 @@ class BasePaymentsPage extends React.Component {
style={[
styles.button,
styles.buttonDanger,
Permissions.canUseWallet(this.props.betas) && styles.mt4,
Permissions.canUseWallet(this.props.betas) && !isPayPalMeSelected && styles.mt4,
styles.alignSelfCenter,
styles.w100,
]}
Expand Down

0 comments on commit 0b7cc87

Please sign in to comment.