@@ -219,31 +228,37 @@ const Deposits = () => {
{ __( 'Deposit bank account', 'woocommerce-payments' ) }
-
- { __(
- 'Manage and update your deposit account information to receive payments and deposits.',
- 'woocommerce-payments'
- ) }{ ' ' }
- { accountLink && (
- {
- recordEvent(
- 'wcpay_settings_deposits_manage_in_stripe_click'
- );
- recordEvent(
- 'wcpay_account_details_link_clicked',
- { source: 'settings-deposits' }
- );
- } }
- >
- { __(
- 'Manage in Stripe',
- 'woocommerce-payments'
- ) }
-
- ) }
-
+ { hasErroredExternalAccount ? (
+
+ ) : (
+
+ { __(
+ 'Manage and update your deposit account information to receive payments and deposits.',
+ 'woocommerce-payments'
+ ) }{ ' ' }
+ { accountLink && (
+ {
+ recordEvent(
+ 'wcpay_settings_deposits_manage_in_stripe_click'
+ );
+ recordEvent(
+ 'wcpay_account_details_link_clicked',
+ { source: 'settings-deposits' }
+ );
+ } }
+ >
+ { __(
+ 'Manage in Stripe',
+ 'woocommerce-payments'
+ ) }
+
+ ) }
+
+ ) }