Skip to content

Commit 6d9cb5e

Browse files
RadoslavGeorgievmordeth
authored andcommitted
Workaround: Hide the transaction breakdown (#10725)
1 parent 6fbcd04 commit 6d9cb5e

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: fix
3+
4+
Disabled the Transactions Breakdown section to avoid misleading data in certain scenarios.

client/payment-details/transaction-breakdown/index.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ interface PaymentTransactionBreakdownProps {
3030
paymentIntentId: string;
3131
}
3232

33+
/**
34+
* Temporary flag to disable transaction breakdown.
35+
*
36+
* Switch to `false` while testing.
37+
*/
38+
const disableTransactionBreakdown = true;
39+
3340
const PaymentTransactionBreakdown: React.FC< PaymentTransactionBreakdownProps > = ( {
3441
paymentIntentId,
3542
} ) => {
@@ -47,6 +54,10 @@ const PaymentTransactionBreakdown: React.FC< PaymentTransactionBreakdownProps >
4754

4855
const transactionAmounts = useTransactionAmounts( captureEvent );
4956

57+
if ( disableTransactionBreakdown ) {
58+
return null;
59+
}
60+
5061
if (
5162
! captureEvent?.transaction_details ||
5263
! captureEvent?.fee_rates ||

client/payment-details/transaction-breakdown/tests/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ declare const global: {
3535
};
3636
};
3737

38-
describe( 'PaymentTransactionBreakdown', () => {
38+
describe.skip( 'PaymentTransactionBreakdown', () => {
3939
beforeEach( () => {
4040
( useTimeline as jest.Mock ).mockReset();
4141
( useTransactionAmounts as jest.Mock ).mockReset();

0 commit comments

Comments
 (0)