Skip to content

Commit

Permalink
Add untranslated Stripe failure message as a backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagesh Pai committed Feb 28, 2025
1 parent 8982a99 commit 176b939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/deposits/details/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export const DepositOverview: React.FC< DepositOverviewProps > = ( {
{ __( 'Failure reason: ', 'woocommerce-payments' ) }
</strong>
{ payoutFailureMessages[ deposit.failure_code ] ||
deposit.failure_message ||
__( 'Unknown', 'woocommerce-payments' ) }
</BannerNotice>
) }
Expand Down
1 change: 1 addition & 0 deletions client/types/deposits.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface CachedDeposit {
automatic: boolean;
bank_reference_key: string;
failure_code: PayoutFailureCode;
failure_message: string;
}

export interface DepositsSummaryCache {
Expand Down

0 comments on commit 176b939

Please sign in to comment.