Skip to content

Commit

Permalink
fix(PayPal): add 'disable payouts' option if not connected (#10800)
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree authored Nov 15, 2024
1 parent 2354c2b commit 8aa9c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/edit-collective/sections/SendingMoney.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class SendingMoney extends React.Component {
connectedAccounts={this.props.collective.connectedAccounts}
services={services}
/>
{services.includes('paypal') && (
{services.includes('paypal') && this.props.collective.connectedAccounts?.find(c => c.service === 'paypal') && (
<Fragment>
<SettingsSectionTitle>
<FormattedMessage id="PayoutMethod.Type.Paypal" defaultMessage="PayPal" />
Expand Down

0 comments on commit 8aa9c30

Please sign in to comment.