Skip to content

Commit

Permalink
Don't show Stripe account link when there isn't one
Browse files Browse the repository at this point in the history
  • Loading branch information
vladolaru committed Aug 28, 2024
1 parent 4dded82 commit 0388cdd
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions client/settings/deposits/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,20 +224,25 @@ const Deposits = () => {
'Manage and update your deposit account information to receive payments and deposits.',
'woocommerce-payments'
) }{ ' ' }
<ExternalLink
href={ accountLink }
onClick={ () => {
recordEvent(
'wcpay_settings_deposits_manage_in_stripe_click'
);
recordEvent(
'wcpay_account_details_link_clicked',
{ source: 'settings-deposits' }
);
} }
>
{ __( 'Manage in Stripe', 'woocommerce-payments' ) }
</ExternalLink>
{ accountLink && (
<ExternalLink
href={ accountLink }
onClick={ () => {
recordEvent(
'wcpay_settings_deposits_manage_in_stripe_click'
);
recordEvent(
'wcpay_account_details_link_clicked',
{ source: 'settings-deposits' }
);
} }
>
{ __(
'Manage in Stripe',
'woocommerce-payments'
) }
</ExternalLink>
) }
</p>
</div>
</CardBody>
Expand Down

0 comments on commit 0388cdd

Please sign in to comment.